OLD | NEW |
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/frame_painter.h" | 5 #include "ash/wm/frame_painter.h" |
6 #include "ash/wm/panel_frame_view.h" | 6 #include "ash/wm/panel_frame_view.h" |
7 #include "grit/ash_resources.h" | 7 #include "grit/ash_resources.h" |
8 #include "grit/ui_strings.h" // Accessibility names | 8 #include "grit/ui_strings.h" // Accessibility names |
9 #include "third_party/skia/include/core/SkPaint.h" | 9 #include "third_party/skia/include/core/SkPaint.h" |
10 #include "ui/base/animation/throb_animation.h" | 10 #include "ui/base/animation/throb_animation.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 void PanelFrameView::ResetWindowControls() { | 48 void PanelFrameView::ResetWindowControls() { |
49 NOTIMPLEMENTED(); | 49 NOTIMPLEMENTED(); |
50 } | 50 } |
51 | 51 |
52 void PanelFrameView::UpdateWindowIcon() { | 52 void PanelFrameView::UpdateWindowIcon() { |
53 NOTIMPLEMENTED(); | 53 NOTIMPLEMENTED(); |
54 } | 54 } |
55 | 55 |
| 56 void PanelFrameView::UpdateWindowTitle() { |
| 57 NOTIMPLEMENTED(); |
| 58 } |
| 59 |
56 void PanelFrameView::GetWindowMask(const gfx::Size&, gfx::Path*) { | 60 void PanelFrameView::GetWindowMask(const gfx::Size&, gfx::Path*) { |
57 // Nothing. | 61 // Nothing. |
58 } | 62 } |
59 | 63 |
60 int PanelFrameView::NonClientHitTest(const gfx::Point& point) { | 64 int PanelFrameView::NonClientHitTest(const gfx::Point& point) { |
61 return frame_painter_->NonClientHitTest(this, point); | 65 return frame_painter_->NonClientHitTest(this, point); |
62 } | 66 } |
63 | 67 |
64 void PanelFrameView::OnPaint(gfx::Canvas* canvas) { | 68 void PanelFrameView::OnPaint(gfx::Canvas* canvas) { |
65 bool paint_as_active = ShouldPaintAsActive(); | 69 bool paint_as_active = ShouldPaintAsActive(); |
(...skipping 20 matching lines...) Expand all Loading... |
86 close_button_->bounds().bottom(), client_bounds); | 90 close_button_->bounds().bottom(), client_bounds); |
87 } | 91 } |
88 | 92 |
89 void PanelFrameView::ButtonPressed(views::Button* sender, | 93 void PanelFrameView::ButtonPressed(views::Button* sender, |
90 const ui::Event& event) { | 94 const ui::Event& event) { |
91 if (sender == close_button_) | 95 if (sender == close_button_) |
92 GetWidget()->Close(); | 96 GetWidget()->Close(); |
93 } | 97 } |
94 | 98 |
95 } // namespace ash | 99 } // namespace ash |
OLD | NEW |