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

Side by Side Diff: ash/wm/custom_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 ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ 5 #ifndef ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_
6 #define ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ 6 #define ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/controls/button/button.h" // ButtonListener 10 #include "ui/views/controls/button/button.h" // ButtonListener
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 }; 51 };
52 52
53 void Init(views::Widget* frame); 53 void Init(views::Widget* frame);
54 54
55 views::ImageButton* close_button() { return close_button_; } 55 views::ImageButton* close_button() { return close_button_; }
56 56
57 // views::NonClientFrameView overrides: 57 // views::NonClientFrameView overrides:
58 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 58 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
59 virtual gfx::Rect GetWindowBoundsForClientBounds( 59 virtual gfx::Rect GetWindowBoundsForClientBounds(
60 const gfx::Rect& client_bounds) const OVERRIDE; 60 const gfx::Rect& client_bounds) const OVERRIDE;
61 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 61 virtual int NonClientHitTest(const gfx::Point& point) const OVERRIDE;
62 virtual void GetWindowMask(const gfx::Size& size, 62 virtual void GetWindowMask(const gfx::Size& size,
63 gfx::Path* window_mask) OVERRIDE; 63 gfx::Path* window_mask) OVERRIDE;
64 virtual void ResetWindowControls() OVERRIDE; 64 virtual void ResetWindowControls() OVERRIDE;
65 virtual void UpdateWindowIcon() OVERRIDE; 65 virtual void UpdateWindowIcon() OVERRIDE;
66 virtual void UpdateWindowTitle() OVERRIDE; 66 virtual void UpdateWindowTitle() OVERRIDE;
67 67
68 // views::View overrides: 68 // views::View overrides:
69 virtual gfx::Size GetPreferredSize() OVERRIDE; 69 virtual gfx::Size GetPreferredSize() OVERRIDE;
70 virtual void Layout() OVERRIDE; 70 virtual void Layout() OVERRIDE;
71 virtual const char* GetClassName() const OVERRIDE; 71 virtual const char* GetClassName() const OVERRIDE;
(...skipping 17 matching lines...) Expand all
89 views::ImageButton* window_icon_; 89 views::ImageButton* window_icon_;
90 90
91 scoped_ptr<FramePainter> frame_painter_; 91 scoped_ptr<FramePainter> frame_painter_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); 93 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh);
94 }; 94 };
95 95
96 } // namespace ash 96 } // namespace ash
97 97
98 #endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ 98 #endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/custom_frame_view_ash.cc » ('j') | chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698