| 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_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 68 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 69 virtual gfx::Rect GetWindowBoundsForClientBounds( | 69 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 70 const gfx::Rect& client_bounds) const OVERRIDE; | 70 const gfx::Rect& client_bounds) const OVERRIDE; |
| 71 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 71 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 72 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 72 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
| 73 OVERRIDE; | 73 OVERRIDE; |
| 74 virtual void ResetWindowControls() OVERRIDE; | 74 virtual void ResetWindowControls() OVERRIDE; |
| 75 virtual void UpdateWindowIcon() OVERRIDE; | 75 virtual void UpdateWindowIcon() OVERRIDE; |
| 76 | 76 |
| 77 // Overridden from views::View: | 77 // Overridden from views::View: |
| 78 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 78 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; |
| 79 virtual void OnThemeChanged() OVERRIDE; | 79 virtual void OnThemeChanged() OVERRIDE; |
| 80 virtual gfx::Size GetMinimumSize() OVERRIDE; | 80 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 81 virtual void Layout() OVERRIDE; | 81 virtual void Layout() OVERRIDE; |
| 82 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 82 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 83 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 83 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
| 84 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 84 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
| 85 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 85 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
| 86 virtual void OnMouseCaptureLost() OVERRIDE; | 86 virtual void OnMouseCaptureLost() OVERRIDE; |
| 87 | 87 |
| 88 // Overridden from views::ButtonListener: | 88 // Overridden from views::ButtonListener: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // borders, including both the window frame and any client edge. | 141 // borders, including both the window frame and any client edge. |
| 142 int NonClientBorderThickness() const; | 142 int NonClientBorderThickness() const; |
| 143 | 143 |
| 144 // Returns the width of the panel that is showing only an icon. | 144 // Returns the width of the panel that is showing only an icon. |
| 145 int IconOnlyWidth() const; | 145 int IconOnlyWidth() const; |
| 146 | 146 |
| 147 // Update control styles to indicate if the titlebar is active or not. | 147 // Update control styles to indicate if the titlebar is active or not. |
| 148 void UpdateControlStyles(PaintState paint_state); | 148 void UpdateControlStyles(PaintState paint_state); |
| 149 | 149 |
| 150 // Custom draw the frame. | 150 // Custom draw the frame. |
| 151 void PaintFrameBorder(gfx::Canvas* canvas); | 151 void PaintFrameBorder(gfx::CanvasSkia* canvas); |
| 152 | 152 |
| 153 // Called by MouseWatcher to notify if the mouse enters or leaves the window. | 153 // Called by MouseWatcher to notify if the mouse enters or leaves the window. |
| 154 void OnMouseEnterOrLeaveWindow(bool mouse_entered); | 154 void OnMouseEnterOrLeaveWindow(bool mouse_entered); |
| 155 | 155 |
| 156 // Retrieves the drawing metrics based on the current painting state. | 156 // Retrieves the drawing metrics based on the current painting state. |
| 157 SkColor GetDefaultTitleColor(PaintState paint_state) const; | 157 SkColor GetDefaultTitleColor(PaintState paint_state) const; |
| 158 SkColor GetTitleColor(PaintState paint_state) const; | 158 SkColor GetTitleColor(PaintState paint_state) const; |
| 159 const SkPaint& GetDefaultFrameTheme(PaintState paint_state) const; | 159 const SkPaint& GetDefaultFrameTheme(PaintState paint_state) const; |
| 160 SkBitmap* GetFrameTheme(PaintState paint_state) const; | 160 SkBitmap* GetFrameTheme(PaintState paint_state) const; |
| 161 | 161 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 bool is_settings_button_visible_; | 206 bool is_settings_button_visible_; |
| 207 | 207 |
| 208 // On Aura popups are displayed in panels. If this panel is not opened by an | 208 // On Aura popups are displayed in panels. If this panel is not opened by an |
| 209 // app, it won't have a settings button. | 209 // app, it won't have a settings button. |
| 210 const bool has_settings_button_; | 210 const bool has_settings_button_; |
| 211 | 211 |
| 212 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 212 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 215 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |