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

Side by Side Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.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_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
(...skipping 25 matching lines...) Expand all
36 // BrowserNonClientFrameView overrides: 36 // BrowserNonClientFrameView overrides:
37 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 37 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
38 virtual TabStripInsets GetTabStripInsets(bool force_restored) const OVERRIDE; 38 virtual TabStripInsets GetTabStripInsets(bool force_restored) const OVERRIDE;
39 virtual int GetThemeBackgroundXInset() const OVERRIDE; 39 virtual int GetThemeBackgroundXInset() const OVERRIDE;
40 virtual void UpdateThrobber(bool running) OVERRIDE; 40 virtual void UpdateThrobber(bool running) OVERRIDE;
41 41
42 // views::NonClientFrameView overrides: 42 // views::NonClientFrameView overrides:
43 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 43 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
44 virtual gfx::Rect GetWindowBoundsForClientBounds( 44 virtual gfx::Rect GetWindowBoundsForClientBounds(
45 const gfx::Rect& client_bounds) const OVERRIDE; 45 const gfx::Rect& client_bounds) const OVERRIDE;
46 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 46 virtual int NonClientHitTest(const gfx::Point& point) const OVERRIDE;
47 virtual void GetWindowMask(const gfx::Size& size, 47 virtual void GetWindowMask(const gfx::Size& size,
48 gfx::Path* window_mask) OVERRIDE; 48 gfx::Path* window_mask) OVERRIDE;
49 virtual void ResetWindowControls() OVERRIDE; 49 virtual void ResetWindowControls() OVERRIDE;
50 virtual void UpdateWindowIcon() OVERRIDE; 50 virtual void UpdateWindowIcon() OVERRIDE;
51 virtual void UpdateWindowTitle() OVERRIDE; 51 virtual void UpdateWindowTitle() OVERRIDE;
52 52
53 // views::View overrides: 53 // views::View overrides:
54 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 54 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
55 virtual void Layout() OVERRIDE; 55 virtual void Layout() OVERRIDE;
56 virtual const char* GetClassName() const OVERRIDE; 56 virtual const char* GetClassName() const OVERRIDE;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 scoped_ptr<ash::FramePainter> frame_painter_; 111 scoped_ptr<ash::FramePainter> frame_painter_;
112 112
113 // If true the |size_button_| minimizes, otherwise it toggles between 113 // If true the |size_button_| minimizes, otherwise it toggles between
114 // maximized and restored. 114 // maximized and restored.
115 bool size_button_minimizes_; 115 bool size_button_minimizes_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); 117 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh);
118 }; 118 };
119 119
120 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 120 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698