| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_VIEWS_FRAME_BROWSER_EXTENDER_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
| 10 | 10 |
| 11 class BrowserView; | 11 class BrowserView; |
| 12 class Tab; | 12 class Tab; |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 class Window; | 15 class Window; |
| 16 } // namespace views | 16 } // namespace views |
| 17 | 17 |
| 18 | 18 |
| 19 // BrowserExtender adds chromeos specific features to BrowserView. | 19 // BrowserExtender adds chromeos specific features to BrowserView. |
| 20 // The factory method |Create(BrowserView*)| creates different types | 20 // The factory method |Create(BrowserView*)| creates different types |
| 21 // of extender depending on the type of BrowserView and target platform. | 21 // of extender depending on the type of BrowserView and target platform. |
| 22 // Please see chromeos_browser_extenders.cc for ChromeOS extenders, and | 22 // Please see browser/chromeos/browser_extenders.cc for ChromeOS extenders, and |
| 23 // standard_extender.cc for Chrome browser. | 23 // standard_extender.cc for Chrome browser. |
| 24 class BrowserExtender { | 24 class BrowserExtender { |
| 25 public: | 25 public: |
| 26 // Factory method to create a BrowserExtender for given | 26 // Factory method to create a BrowserExtender for given |
| 27 // BrowserView object. Please see the class description for details. | 27 // BrowserView object. Please see the class description for details. |
| 28 static BrowserExtender* Create(BrowserView* browser_view); | 28 static BrowserExtender* Create(BrowserView* browser_view); |
| 29 | 29 |
| 30 virtual ~BrowserExtender() {} | 30 virtual ~BrowserExtender() {} |
| 31 | 31 |
| 32 // Initializes the extender. | 32 // Initializes the extender. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 private: | 92 private: |
| 93 // BrowserView to be extended. | 93 // BrowserView to be extended. |
| 94 BrowserView* browser_view_; | 94 BrowserView* browser_view_; |
| 95 | 95 |
| 96 // True if the browser can be closed. See set_can_close method for setails. | 96 // True if the browser can be closed. See set_can_close method for setails. |
| 97 bool can_close_; | 97 bool can_close_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(BrowserExtender); | 99 DISALLOW_COPY_AND_ASSIGN(BrowserExtender); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 #endif // CHROME_BROWSER_CHROMEOS_BROWSER_EXTENDER_H_ | 102 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ |
| OLD | NEW |