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

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

Issue 8762017: Support painting panel in iconified mode on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix trybot Created 9 years 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.h ('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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void OnFocusChanged(bool focused); 47 void OnFocusChanged(bool focused);
48 48
49 // Returns the height of the entire nonclient top border, including the window 49 // Returns the height of the entire nonclient top border, including the window
50 // frame, any title area, and any connected client edge. 50 // frame, any title area, and any connected client edge.
51 int NonClientTopBorderHeight() const; 51 int NonClientTopBorderHeight() const;
52 52
53 // Returns the size of the non-client area, that is, the window size minus 53 // Returns the size of the non-client area, that is, the window size minus
54 // the size of the client area. 54 // the size of the client area.
55 gfx::Size NonClientAreaSize() const; 55 gfx::Size NonClientAreaSize() const;
56 56
57 // Returns the size of the non-client area upon which only the title icon
58 // is drawn.
59 gfx::Size IconifiedSize() const;
60
57 protected: 61 protected:
58 // Overridden from BrowserNonClientFrameView: 62 // Overridden from BrowserNonClientFrameView:
59 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 63 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
60 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; 64 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE;
61 virtual void UpdateThrobber(bool running) OVERRIDE; 65 virtual void UpdateThrobber(bool running) OVERRIDE;
62 66
63 // Overridden from views::NonClientFrameView: 67 // Overridden from views::NonClientFrameView:
64 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 68 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
65 virtual gfx::Rect GetWindowBoundsForClientBounds( 69 virtual gfx::Rect GetWindowBoundsForClientBounds(
66 const gfx::Rect& client_bounds) const OVERRIDE; 70 const gfx::Rect& client_bounds) const OVERRIDE;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 PanelBrowserFrameView* view_; 134 PanelBrowserFrameView* view_;
131 bool is_mouse_within_; 135 bool is_mouse_within_;
132 136
133 DISALLOW_COPY_AND_ASSIGN(MouseWatcher); 137 DISALLOW_COPY_AND_ASSIGN(MouseWatcher);
134 }; 138 };
135 139
136 // Returns the thickness of the entire nonclient left, right, and bottom 140 // Returns the thickness of the entire nonclient left, right, and bottom
137 // borders, including both the window frame and any client edge. 141 // borders, including both the window frame and any client edge.
138 int NonClientBorderThickness() const; 142 int NonClientBorderThickness() const;
139 143
144 // Returns the width of the panel that is showing only an icon.
145 int IconOnlyWidth() const;
146
140 // 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.
141 void UpdateControlStyles(PaintState paint_state); 148 void UpdateControlStyles(PaintState paint_state);
142 149
143 // Custom draw the frame. 150 // Custom draw the frame.
144 void PaintFrameBorder(gfx::Canvas* canvas); 151 void PaintFrameBorder(gfx::Canvas* canvas);
145 152
146 // 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.
147 void OnMouseEnterOrLeaveWindow(bool mouse_entered); 154 void OnMouseEnterOrLeaveWindow(bool mouse_entered);
148 155
149 // Retrieves the drawing metrics based on the current painting state. 156 // Retrieves the drawing metrics based on the current painting state.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // Used to animate the visibility change of settings button. 202 // Used to animate the visibility change of settings button.
196 scoped_ptr<ui::SlideAnimation> settings_button_animator_; 203 scoped_ptr<ui::SlideAnimation> settings_button_animator_;
197 gfx::Rect settings_button_full_bounds_; 204 gfx::Rect settings_button_full_bounds_;
198 gfx::Rect settings_button_zero_bounds_; 205 gfx::Rect settings_button_zero_bounds_;
199 bool is_settings_button_visible_; 206 bool is_settings_button_visible_;
200 207
201 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); 208 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView);
202 }; 209 };
203 210
204 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 211 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('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