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_PANELS_PANEL_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/tab_icon_view_model.h" | 8 #include "chrome/browser/ui/views/tab_icon_view_model.h" |
9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/window/non_client_view.h" | 10 #include "ui/views/window/non_client_view.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 private: | 52 private: |
53 // Overridden from views::NonClientFrameView: | 53 // Overridden from views::NonClientFrameView: |
54 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 54 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
55 virtual gfx::Rect GetWindowBoundsForClientBounds( | 55 virtual gfx::Rect GetWindowBoundsForClientBounds( |
56 const gfx::Rect& client_bounds) const OVERRIDE; | 56 const gfx::Rect& client_bounds) const OVERRIDE; |
57 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 57 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
58 virtual void GetWindowMask(const gfx::Size& size, | 58 virtual void GetWindowMask(const gfx::Size& size, |
59 gfx::Path* window_mask) OVERRIDE; | 59 gfx::Path* window_mask) OVERRIDE; |
60 virtual void ResetWindowControls() OVERRIDE; | 60 virtual void ResetWindowControls() OVERRIDE; |
61 virtual void UpdateWindowIcon() OVERRIDE; | 61 virtual void UpdateWindowIcon() OVERRIDE; |
| 62 virtual void UpdateWindowTitle() OVERRIDE; |
62 | 63 |
63 // Overridden from views::View: | 64 // Overridden from views::View: |
64 virtual gfx::Size GetPreferredSize() OVERRIDE; | 65 virtual gfx::Size GetPreferredSize() OVERRIDE; |
65 virtual std::string GetClassName() const OVERRIDE; | 66 virtual std::string GetClassName() const OVERRIDE; |
66 virtual gfx::Size GetMinimumSize() OVERRIDE; | 67 virtual gfx::Size GetMinimumSize() OVERRIDE; |
67 virtual gfx::Size GetMaximumSize() OVERRIDE; | 68 virtual gfx::Size GetMaximumSize() OVERRIDE; |
68 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 69 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
69 virtual void Layout() OVERRIDE; | 70 virtual void Layout() OVERRIDE; |
70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 71 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
71 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 72 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 views::ImageButton* close_button_; | 109 views::ImageButton* close_button_; |
109 views::ImageButton* minimize_button_; | 110 views::ImageButton* minimize_button_; |
110 views::ImageButton* restore_button_; | 111 views::ImageButton* restore_button_; |
111 TabIconView* title_icon_; | 112 TabIconView* title_icon_; |
112 views::Label* title_label_; | 113 views::Label* title_label_; |
113 | 114 |
114 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); | 115 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); |
115 }; | 116 }; |
116 | 117 |
117 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_ | 118 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_ |
OLD | NEW |