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

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_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_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/views/frame/browser_frame.h" 9 #include "chrome/browser/ui/views/frame/browser_frame.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Returns the height of the entire nonclient top border, including the window 53 // Returns the height of the entire nonclient top border, including the window
54 // frame, any title area, and any connected client edge. If |restored| is 54 // frame, any title area, and any connected client edge. If |restored| is
55 // true, acts as if the window is restored regardless of the real mode. 55 // true, acts as if the window is restored regardless of the real mode.
56 int NonClientTopBorderHeight(bool restored) const; 56 int NonClientTopBorderHeight(bool restored) const;
57 57
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, gfx::Path* window_mask) 63 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
64 OVERRIDE; 64 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 void OnPaint(gfx::Canvas* canvas) OVERRIDE; 70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
71 virtual void Layout() OVERRIDE; 71 virtual void Layout() OVERRIDE;
72 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; 72 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 content::NotificationRegistrar registrar_; 168 content::NotificationRegistrar registrar_;
169 169
170 // Background painter for the window frame. 170 // Background painter for the window frame.
171 scoped_ptr<views::FrameBackground> frame_background_; 171 scoped_ptr<views::FrameBackground> frame_background_;
172 172
173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
174 }; 174 };
175 175
176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698