| 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_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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 PanelBrowserFrameView* view_; | 134 PanelBrowserFrameView* view_; |
| 135 bool is_mouse_within_; | 135 bool is_mouse_within_; |
| 136 | 136 |
| 137 DISALLOW_COPY_AND_ASSIGN(MouseWatcher); | 137 DISALLOW_COPY_AND_ASSIGN(MouseWatcher); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 // Returns the thickness of the entire nonclient left, right, and bottom | 140 // Returns the thickness of the entire nonclient left, right, and bottom |
| 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 // Update control styles to indicate if the title bar is active or not. | 144 // Update control styles to indicate if the titlebar is active or not. |
| 145 void UpdateControlStyles(PaintState paint_state); | 145 void UpdateControlStyles(PaintState paint_state); |
| 146 | 146 |
| 147 // Custom draw the frame. | 147 // Custom draw the frame. |
| 148 void PaintFrameBorder(gfx::Canvas* canvas); | 148 void PaintFrameBorder(gfx::Canvas* canvas); |
| 149 void PaintClientEdge(gfx::Canvas* canvas); | 149 void PaintClientEdge(gfx::Canvas* canvas); |
| 150 | 150 |
| 151 // Called by MouseWatcher to notify if the mouse enters or leaves the window. | 151 // Called by MouseWatcher to notify if the mouse enters or leaves the window. |
| 152 void OnMouseEnterOrLeaveWindow(bool mouse_entered); | 152 void OnMouseEnterOrLeaveWindow(bool mouse_entered); |
| 153 | 153 |
| 154 // Retrieves the drawing metrics based on the current painting state. | 154 // Retrieves the drawing metrics based on the current painting state. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 scoped_ptr<MouseWatcher> mouse_watcher_; | 190 scoped_ptr<MouseWatcher> mouse_watcher_; |
| 191 ui::SimpleMenuModel settings_menu_contents_; | 191 ui::SimpleMenuModel settings_menu_contents_; |
| 192 views::MenuModelAdapter settings_menu_adapter_; | 192 views::MenuModelAdapter settings_menu_adapter_; |
| 193 views::MenuItemView settings_menu_; | 193 views::MenuItemView settings_menu_; |
| 194 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; | 194 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 196 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 199 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |