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

Side by Side Diff: ui/views/window/custom_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 UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 CustomFrameView(); 35 CustomFrameView();
36 virtual ~CustomFrameView(); 36 virtual ~CustomFrameView();
37 37
38 void Init(Widget* frame); 38 void Init(Widget* frame);
39 39
40 // Overridden from NonClientFrameView: 40 // Overridden from NonClientFrameView:
41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
42 virtual gfx::Rect GetWindowBoundsForClientBounds( 42 virtual gfx::Rect GetWindowBoundsForClientBounds(
43 const gfx::Rect& client_bounds) const OVERRIDE; 43 const gfx::Rect& client_bounds) const OVERRIDE;
44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 44 virtual int NonClientHitTest(const gfx::Point& point) const OVERRIDE;
45 virtual void GetWindowMask(const gfx::Size& size, 45 virtual void GetWindowMask(const gfx::Size& size,
46 gfx::Path* window_mask) OVERRIDE; 46 gfx::Path* window_mask) OVERRIDE;
47 virtual void ResetWindowControls() OVERRIDE; 47 virtual void ResetWindowControls() OVERRIDE;
48 virtual void UpdateWindowIcon() OVERRIDE; 48 virtual void UpdateWindowIcon() OVERRIDE;
49 virtual void UpdateWindowTitle() OVERRIDE; 49 virtual void UpdateWindowTitle() OVERRIDE;
50 50
51 // Overridden from View: 51 // Overridden from View:
52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
53 virtual void Layout() OVERRIDE; 53 virtual void Layout() OVERRIDE;
54 virtual gfx::Size GetPreferredSize() OVERRIDE; 54 virtual gfx::Size GetPreferredSize() OVERRIDE;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 // Background painter for the window frame. 137 // Background painter for the window frame.
138 scoped_ptr<FrameBackground> frame_background_; 138 scoped_ptr<FrameBackground> frame_background_;
139 139
140 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); 140 DISALLOW_COPY_AND_ASSIGN(CustomFrameView);
141 }; 141 };
142 142
143 } // namespace views 143 } // namespace views
144 144
145 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 145 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698