blob: aea3d24e5a071905b53015d323917ca5c5ecf30b [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_
#define EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_
#include "extensions/common/view_type.h"
namespace content {
class WebContents;
}
namespace extensions {
// Get/Set the type of a WebContents.
// GetViewType handles a NULL |tab| for convenience by returning
// VIEW_TYPE_INVALID.
ViewType GetViewType(content::WebContents* tab);
void SetViewType(content::WebContents* tab, ViewType type);
} // namespace extensions
#endif // EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_