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

Side by Side Diff: ash/wm/panels/panel_frame_view.cc

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 #include "ash/wm/panels/panel_frame_view.h" 5 #include "ash/wm/panels/panel_frame_view.h"
6 6
7 #include "ash/wm/frame_painter.h" 7 #include "ash/wm/frame_painter.h"
8 #include "grit/ash_resources.h" 8 #include "grit/ash_resources.h"
9 #include "grit/ui_strings.h" // Accessibility names 9 #include "grit/ui_strings.h" // Accessibility names
10 #include "third_party/skia/include/core/SkPaint.h" 10 #include "third_party/skia/include/core/SkPaint.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void PanelFrameView::UpdateWindowTitle() { 95 void PanelFrameView::UpdateWindowTitle() {
96 if (!frame_painter_) 96 if (!frame_painter_)
97 return; 97 return;
98 frame_painter_->SchedulePaintForTitle(title_font_); 98 frame_painter_->SchedulePaintForTitle(title_font_);
99 } 99 }
100 100
101 void PanelFrameView::GetWindowMask(const gfx::Size&, gfx::Path*) { 101 void PanelFrameView::GetWindowMask(const gfx::Size&, gfx::Path*) {
102 // Nothing. 102 // Nothing.
103 } 103 }
104 104
105 int PanelFrameView::NonClientHitTest(const gfx::Point& point) { 105 int PanelFrameView::NonClientHitTest(const gfx::Point& point) const {
106 if (!frame_painter_) 106 if (!frame_painter_)
107 return HTNOWHERE; 107 return HTNOWHERE;
108 return frame_painter_->NonClientHitTest(this, point); 108 return frame_painter_->NonClientHitTest(this, point);
109 } 109 }
110 110
111 void PanelFrameView::OnPaint(gfx::Canvas* canvas) { 111 void PanelFrameView::OnPaint(gfx::Canvas* canvas) {
112 if (!frame_painter_) 112 if (!frame_painter_)
113 return; 113 return;
114 bool paint_as_active = ShouldPaintAsActive(); 114 bool paint_as_active = ShouldPaintAsActive();
115 int theme_frame_id = 0; 115 int theme_frame_id = 0;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 void PanelFrameView::ButtonPressed(views::Button* sender, 149 void PanelFrameView::ButtonPressed(views::Button* sender,
150 const ui::Event& event) { 150 const ui::Event& event) {
151 if (sender == close_button_) 151 if (sender == close_button_)
152 GetWidget()->Close(); 152 GetWidget()->Close();
153 if (sender == minimize_button_) 153 if (sender == minimize_button_)
154 GetWidget()->Minimize(); 154 GetWidget()->Minimize();
155 } 155 }
156 156
157 } // namespace ash 157 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698