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 #include "chrome/browser/views/frame/browser_extender.h" | 5 #include "chrome/browser/views/frame/browser_extender.h" |
6 | 6 |
| 7 class Tab; |
| 8 |
7 namespace { | 9 namespace { |
8 | 10 |
9 // StandardExtender for non ChromeOS build. This currently adds/does nothing. | 11 // StandardExtender for non ChromeOS build. This currently adds/does nothing. |
10 // TODO(oshima): Add MainMenu support with a command line flag. | 12 // TODO(oshima): Add MainMenu support with a command line flag. |
11 class StandardExtender : public BrowserExtender { | 13 class StandardExtender : public BrowserExtender { |
12 public: | 14 public: |
13 explicit StandardExtender(BrowserView* browser_view) | 15 explicit StandardExtender(BrowserView* browser_view) |
14 : BrowserExtender(browser_view) { | 16 : BrowserExtender(browser_view) { |
15 } | 17 } |
16 virtual ~StandardExtender() {} | 18 virtual ~StandardExtender() {} |
17 | 19 |
18 private: | 20 private: |
19 // BrowserExtender overrides. | 21 // BrowserExtender overrides. |
20 virtual void Init() {} | 22 virtual void Init() {} |
21 virtual gfx::Rect Layout(const gfx::Rect& bounds) { return bounds; } | 23 virtual gfx::Rect Layout(const gfx::Rect& bounds) { return bounds; } |
22 virtual bool NonClientHitTest(const gfx::Point& point) { return false; } | 24 virtual bool NonClientHitTest(const gfx::Point& point) { return false; } |
23 virtual void Show() {} | 25 virtual void Show() {} |
24 virtual void Close() {} | 26 virtual void Close() {} |
25 virtual void UpdateTitleBar() {} | 27 virtual void UpdateTitleBar() {} |
26 virtual void ActivationChanged() {} | 28 virtual void ActivationChanged() {} |
27 virtual bool ShouldForceHideToolbar() { return false; } | 29 virtual bool ShouldForceHideToolbar() { return false; } |
28 virtual void ToggleCompactNavigationBar() {} | 30 virtual void ToggleCompactNavigationBar() {} |
| 31 virtual void OnMouseEnteredToTab(Tab* tab) {} |
| 32 virtual void OnMouseMovedOnTab(Tab* tab) {} |
| 33 virtual void OnMouseExitedFromTab(Tab* tab) {} |
29 | 34 |
30 DISALLOW_COPY_AND_ASSIGN(StandardExtender); | 35 DISALLOW_COPY_AND_ASSIGN(StandardExtender); |
31 }; | 36 }; |
32 | 37 |
33 } // namespace | 38 } // namespace |
34 | 39 |
35 //////////////////////////////////////////////////////////////////////////////// | 40 //////////////////////////////////////////////////////////////////////////////// |
36 // BrowserExtender, public: | 41 // BrowserExtender, public: |
37 | 42 |
38 // static | 43 // static |
39 BrowserExtender* BrowserExtender::Create(BrowserView* browser_view) { | 44 BrowserExtender* BrowserExtender::Create(BrowserView* browser_view) { |
40 return new StandardExtender(browser_view); | 45 return new StandardExtender(browser_view); |
41 } | 46 } |
OLD | NEW |