Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_FACTORY_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_FACTORY_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class BrowserFrame; | 10 class BrowserFrame; |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 // factory. Use NULL to go back to default factory. | 23 // factory. Use NULL to go back to default factory. |
| 24 static void Set(NativeBrowserFrameFactory* new_factory); | 24 static void Set(NativeBrowserFrameFactory* new_factory); |
| 25 | 25 |
| 26 virtual NativeBrowserFrame* Create(BrowserFrame* browser_frame, | 26 virtual NativeBrowserFrame* Create(BrowserFrame* browser_frame, |
| 27 BrowserView* browser_view); | 27 BrowserView* browser_view); |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 NativeBrowserFrameFactory() {} | 30 NativeBrowserFrameFactory() {} |
| 31 virtual ~NativeBrowserFrameFactory() {} | 31 virtual ~NativeBrowserFrameFactory() {} |
| 32 | 32 |
| 33 private: | |
| 34 // For Chrome running on desktop platforms, returns true if the factory should | |
| 35 // create an ash browser frame for the provided |browser_view|. | |
| 36 static bool ShouldCreateForAshDesktop(BrowserView* browser_view); | |
|
tapted
2013/11/15 12:47:11
Note: the current approach leaves this undefined o
sky
2013/11/15 17:31:27
Is there a reason not to move it to native_browser
tapted
2013/11/18 11:13:48
It needs to pull in some ash-specific files - if t
| |
| 37 | |
| 33 DISALLOW_COPY_AND_ASSIGN(NativeBrowserFrameFactory); | 38 DISALLOW_COPY_AND_ASSIGN(NativeBrowserFrameFactory); |
| 34 }; | 39 }; |
| 35 | 40 |
| 36 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_FACTORY_H_ | 41 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_FACTORY_H_ |
| OLD | NEW |