OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MESSAGE_CENTER_MESSAGE_CENTER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_MESSAGE_CENTER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_MESSAGE_CENTER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_MESSAGE_CENTER_FRAME_VIEW_H_ |
7 | 7 |
8 #include "ui/views/window/non_client_view.h" | 8 #include "ui/views/window/non_client_view.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
11 class Label; | 11 class Label; |
12 class LabelButton; | 12 class LabelButton; |
13 class BubbleBorder; | 13 class BubbleBorder; |
14 } | 14 } |
15 | 15 |
16 namespace message_center { | 16 namespace message_center { |
17 | 17 |
18 // The non-client frame view of the message center widget. | 18 // The non-client frame view of the message center widget. |
19 class MessageCenterFrameView : public views::NonClientFrameView { | 19 class MessageCenterFrameView : public views::NonClientFrameView { |
20 public: | 20 public: |
21 explicit MessageCenterFrameView(); | 21 explicit MessageCenterFrameView(); |
22 virtual ~MessageCenterFrameView(); | 22 virtual ~MessageCenterFrameView(); |
23 | 23 |
24 // NonClientFrameView overrides: | 24 // NonClientFrameView overrides: |
25 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 25 virtual gfx::Rect GetBoundsForClientView() const override; |
26 virtual gfx::Rect GetWindowBoundsForClientBounds( | 26 virtual gfx::Rect GetWindowBoundsForClientBounds( |
27 const gfx::Rect& client_bounds) const OVERRIDE; | 27 const gfx::Rect& client_bounds) const override; |
28 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 28 virtual int NonClientHitTest(const gfx::Point& point) override; |
29 virtual void GetWindowMask(const gfx::Size& size, | 29 virtual void GetWindowMask(const gfx::Size& size, |
30 gfx::Path* window_mask) OVERRIDE; | 30 gfx::Path* window_mask) override; |
31 virtual void ResetWindowControls() OVERRIDE; | 31 virtual void ResetWindowControls() override; |
32 virtual void UpdateWindowIcon() OVERRIDE; | 32 virtual void UpdateWindowIcon() override; |
33 virtual void UpdateWindowTitle() OVERRIDE; | 33 virtual void UpdateWindowTitle() override; |
34 virtual void SizeConstraintsChanged() OVERRIDE; | 34 virtual void SizeConstraintsChanged() override; |
35 | 35 |
36 // View overrides: | 36 // View overrides: |
37 virtual gfx::Insets GetInsets() const OVERRIDE; | 37 virtual gfx::Insets GetInsets() const override; |
38 virtual const char* GetClassName() const OVERRIDE; | 38 virtual const char* GetClassName() const override; |
39 | 39 |
40 private: | 40 private: |
41 DISALLOW_COPY_AND_ASSIGN(MessageCenterFrameView); | 41 DISALLOW_COPY_AND_ASSIGN(MessageCenterFrameView); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace message_center | 44 } // namespace message_center |
45 | 45 |
46 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_MESSAGE_CENTER_FRAME_VIEW_H_ | 46 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_MESSAGE_CENTER_FRAME_VIEW_H_ |
OLD | NEW |