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

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

Issue 10260028: Update Panel mininimize/restore button on strip and expansion state change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback changes Created 8 years, 7 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) 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 17 matching lines...) Expand all
28 } 28 }
29 29
30 class PanelBrowserFrameView : public BrowserNonClientFrameView, 30 class PanelBrowserFrameView : public BrowserNonClientFrameView,
31 public views::ButtonListener, 31 public views::ButtonListener,
32 public TabIconView::TabIconViewModel { 32 public TabIconView::TabIconViewModel {
33 public: 33 public:
34 PanelBrowserFrameView(BrowserFrame* frame, PanelBrowserView* browser_view); 34 PanelBrowserFrameView(BrowserFrame* frame, PanelBrowserView* browser_view);
35 virtual ~PanelBrowserFrameView(); 35 virtual ~PanelBrowserFrameView();
36 36
37 void UpdateTitleBar(); 37 void UpdateTitleBar();
38 void UpdateTitleBarMinimizeRestoreButtonVisibility();
38 39
39 // Returns the height of the entire nonclient top border, including the window 40 // Returns the height of the entire nonclient top border, including the window
40 // frame, any title area, and any connected client edge. 41 // frame, any title area, and any connected client edge.
41 int NonClientTopBorderHeight() const; 42 int NonClientTopBorderHeight() const;
42 43
43 // Returns the size of the non-client area, that is, the window size minus 44 // Returns the size of the non-client area, that is, the window size minus
44 // the size of the client area. 45 // the size of the client area.
45 gfx::Size NonClientAreaSize() const; 46 gfx::Size NonClientAreaSize() const;
46 47
47 // Returns true if the frame window is showing only the titlebar. 48 // Returns true if the frame window is showing only the titlebar.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 views::ImageButton* minimize_button_; 130 views::ImageButton* minimize_button_;
130 views::ImageButton* restore_button_; 131 views::ImageButton* restore_button_;
131 TabIconView* title_icon_; 132 TabIconView* title_icon_;
132 views::Label* title_label_; 133 views::Label* title_label_;
133 gfx::Rect client_view_bounds_; 134 gfx::Rect client_view_bounds_;
134 135
135 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); 136 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView);
136 }; 137 };
137 138
138 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 139 #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