Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: chrome/browser/ui/panels/panel_browser_frame_view.h

Issue 7633034: Use Titlebar instead of TitleBar consistently in panels code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review feedback. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_browser_frame_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698