| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_VIEW_TYPE_UTILS_H_ | |
| 6 #define CHROME_BROWSER_VIEW_TYPE_UTILS_H_ | |
| 7 | |
| 8 #include "chrome/common/view_type.h" | |
| 9 | |
| 10 namespace content { | |
| 11 class WebContents; | |
| 12 } | |
| 13 | |
| 14 namespace chrome { | |
| 15 | |
| 16 // Get/Set the type of a WebContents. | |
| 17 // GetViewType handles a NULL |tab| for convenience by returning | |
| 18 // VIEW_TYPE_INVALID. | |
| 19 ViewType GetViewType(content::WebContents* tab); | |
| 20 void SetViewType(content::WebContents* tab, ViewType type); | |
| 21 | |
| 22 } // namespace chrome | |
| 23 | |
| 24 #endif // CHROME_BROWSER_VIEW_TYPE_UTILS_H_ | |
| OLD | NEW |