OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_POPUP_NON_CLIENT_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
10 | 10 |
11 // BrowserNonClientFrameView implementation for popups. We let the window | 11 // BrowserNonClientFrameView implementation for popups. We let the window |
12 // manager implementation render the decorations for popups, so this draws | 12 // manager implementation render the decorations for popups, so this draws |
13 // nothing. | 13 // nothing. |
14 class PopupNonClientFrameView : public BrowserNonClientFrameView { | 14 class PopupNonClientFrameView : public BrowserNonClientFrameView { |
15 public: | 15 public: |
16 explicit PopupNonClientFrameView(BrowserFrame* frame); | 16 PopupNonClientFrameView() {} |
17 | 17 |
18 // NonClientFrameView: | 18 // NonClientFrameView: |
19 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 19 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 20 virtual bool AlwaysUseCustomFrame() const OVERRIDE; |
| 21 virtual bool AlwaysUseNativeFrame() const OVERRIDE; |
20 virtual gfx::Rect GetWindowBoundsForClientBounds( | 22 virtual gfx::Rect GetWindowBoundsForClientBounds( |
21 const gfx::Rect& client_bounds) const OVERRIDE; | 23 const gfx::Rect& client_bounds) const OVERRIDE; |
22 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 24 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
23 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 25 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
24 OVERRIDE; | 26 OVERRIDE; |
25 virtual void EnableClose(bool enable) OVERRIDE; | 27 virtual void EnableClose(bool enable) OVERRIDE; |
26 virtual void ResetWindowControls() OVERRIDE; | 28 virtual void ResetWindowControls() OVERRIDE; |
27 virtual void UpdateWindowIcon() OVERRIDE; | 29 virtual void UpdateWindowIcon() OVERRIDE; |
28 | 30 |
29 // BrowserNonClientFrameView: | 31 // BrowserNonClientFrameView: |
30 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; | 32 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; |
31 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; | 33 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; |
32 virtual void UpdateThrobber(bool running) OVERRIDE; | 34 virtual void UpdateThrobber(bool running) OVERRIDE; |
33 | 35 |
34 private: | 36 private: |
35 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView); | 37 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView); |
36 }; | 38 }; |
37 | 39 |
38 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ | 40 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ |
OLD | NEW |