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

Side by Side Diff: chrome/browser/ui/views/panels/panel_frame_view.h

Issue 19115003: Make the maximize button more easily hittable when there is a huge amount of tabs present (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed completely Created 7 years, 5 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
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_VIEWS_PANELS_PANEL_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_
7 7
8 #include "chrome/browser/ui/panels/panel_constants.h" 8 #include "chrome/browser/ui/panels/panel_constants.h"
9 #include "chrome/browser/ui/views/tab_icon_view_model.h" 9 #include "chrome/browser/ui/views/tab_icon_view_model.h"
10 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 views::ImageButton* restore_button() const { return restore_button_; } 52 views::ImageButton* restore_button() const { return restore_button_; }
53 TabIconView* title_icon() const { return title_icon_; } 53 TabIconView* title_icon() const { return title_icon_; }
54 views::Label* title_label() const { return title_label_; } 54 views::Label* title_label() const { return title_label_; }
55 panel::CornerStyle corner_style() const { return corner_style_; } 55 panel::CornerStyle corner_style() const { return corner_style_; }
56 56
57 private: 57 private:
58 // Overridden from views::NonClientFrameView: 58 // Overridden from views::NonClientFrameView:
59 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 59 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
60 virtual gfx::Rect GetWindowBoundsForClientBounds( 60 virtual gfx::Rect GetWindowBoundsForClientBounds(
61 const gfx::Rect& client_bounds) const OVERRIDE; 61 const gfx::Rect& client_bounds) const OVERRIDE;
62 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 62 virtual int NonClientHitTest(const gfx::Point& point) const OVERRIDE;
63 virtual void GetWindowMask(const gfx::Size& size, 63 virtual void GetWindowMask(const gfx::Size& size,
64 gfx::Path* window_mask) OVERRIDE; 64 gfx::Path* window_mask) OVERRIDE;
65 virtual void ResetWindowControls() OVERRIDE; 65 virtual void ResetWindowControls() OVERRIDE;
66 virtual void UpdateWindowIcon() OVERRIDE; 66 virtual void UpdateWindowIcon() OVERRIDE;
67 virtual void UpdateWindowTitle() OVERRIDE; 67 virtual void UpdateWindowTitle() OVERRIDE;
68 68
69 // Overridden from views::View: 69 // Overridden from views::View:
70 virtual gfx::Size GetPreferredSize() OVERRIDE; 70 virtual gfx::Size GetPreferredSize() OVERRIDE;
71 virtual const char* GetClassName() const OVERRIDE; 71 virtual const char* GetClassName() const OVERRIDE;
72 virtual gfx::Size GetMinimumSize() OVERRIDE; 72 virtual gfx::Size GetMinimumSize() OVERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 views::ImageButton* minimize_button_; 108 views::ImageButton* minimize_button_;
109 views::ImageButton* restore_button_; 109 views::ImageButton* restore_button_;
110 TabIconView* title_icon_; 110 TabIconView* title_icon_;
111 views::Label* title_label_; 111 views::Label* title_label_;
112 panel::CornerStyle corner_style_; 112 panel::CornerStyle corner_style_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); 114 DISALLOW_COPY_AND_ASSIGN(PanelFrameView);
115 }; 115 };
116 116
117 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_ 117 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698