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