OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 8 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
9 #include "chrome/browser/ui/views/tab_icon_view_model.h" | 9 #include "chrome/browser/ui/views/tab_icon_view_model.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 gfx::Path* window_mask) OVERRIDE; | 45 gfx::Path* window_mask) OVERRIDE; |
46 virtual void ResetWindowControls() OVERRIDE; | 46 virtual void ResetWindowControls() OVERRIDE; |
47 virtual void UpdateWindowIcon() OVERRIDE; | 47 virtual void UpdateWindowIcon() OVERRIDE; |
48 | 48 |
49 // Overridden from views::View: | 49 // Overridden from views::View: |
50 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 50 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
51 virtual void Layout() OVERRIDE; | 51 virtual void Layout() OVERRIDE; |
52 | 52 |
53 // Overridden from views::ButtonListener: | 53 // Overridden from views::ButtonListener: |
54 virtual void ButtonPressed(views::Button* sender, | 54 virtual void ButtonPressed(views::Button* sender, |
55 const views::Event& event) OVERRIDE; | 55 const ui::Event& event) OVERRIDE; |
56 | 56 |
57 // Overridden from chrome::TabIconViewModel: | 57 // Overridden from chrome::TabIconViewModel: |
58 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; | 58 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; |
59 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; | 59 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; |
60 | 60 |
61 private: | 61 private: |
62 // Returns the thickness of the border that makes up the window frame edges. | 62 // Returns the thickness of the border that makes up the window frame edges. |
63 // This does not include any client edge. | 63 // This does not include any client edge. |
64 int FrameBorderThickness() const; | 64 int FrameBorderThickness() const; |
65 | 65 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // The Window icon. | 105 // The Window icon. |
106 TabIconView* window_icon_; | 106 TabIconView* window_icon_; |
107 | 107 |
108 // The bounds of the ClientView. | 108 // The bounds of the ClientView. |
109 gfx::Rect client_view_bounds_; | 109 gfx::Rect client_view_bounds_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); | 111 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); |
112 }; | 112 }; |
113 | 113 |
114 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ | 114 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |