summaryrefslogtreecommitdiffstats
path: root/extensions/browser/view_type_utils.h
blob: aea3d24e5a071905b53015d323917ca5c5ecf30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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_