Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Side by Side Diff: extensions/browser/view_type_utils.h

Issue 13375017: Move the ViewType enum to extensions\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_VIEW_TYPE_UTILS_H_ 5 #ifndef EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_
6 #define CHROME_BROWSER_VIEW_TYPE_UTILS_H_ 6 #define EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_
7 7
8 #include "chrome/common/view_type.h" 8 #include "extensions/common/view_type.h"
9 9
10 namespace content { 10 namespace content {
11 class WebContents; 11 class WebContents;
12 } 12 }
13 13
14 namespace chrome { 14 namespace extensions {
15 15
16 // Get/Set the type of a WebContents. 16 // Get/Set the type of a WebContents.
17 // GetViewType handles a NULL |tab| for convenience by returning 17 // GetViewType handles a NULL |tab| for convenience by returning
18 // VIEW_TYPE_INVALID. 18 // VIEW_TYPE_INVALID.
19 ViewType GetViewType(content::WebContents* tab); 19 ViewType GetViewType(content::WebContents* tab);
20 void SetViewType(content::WebContents* tab, ViewType type); 20 void SetViewType(content::WebContents* tab, ViewType type);
21 21
22 } // namespace chrome 22 } // namespace chrome
23 23
24 #endif // CHROME_BROWSER_VIEW_TYPE_UTILS_H_ 24 #endif // EXTENSIONS_BROWSER_VIEW_TYPE_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698