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 #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 6 #define UI_VIEWS_BUBBLE_BUBBLE_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/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView, | 22 class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView, |
23 public ButtonListener { | 23 public ButtonListener { |
24 public: | 24 public: |
25 explicit BubbleFrameView(const gfx::Insets& content_margins); | 25 explicit BubbleFrameView(const gfx::Insets& content_margins); |
26 virtual ~BubbleFrameView(); | 26 virtual ~BubbleFrameView(); |
27 | 27 |
28 // NonClientFrameView overrides: | 28 // NonClientFrameView overrides: |
29 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 29 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
30 virtual gfx::Rect GetWindowBoundsForClientBounds( | 30 virtual gfx::Rect GetWindowBoundsForClientBounds( |
31 const gfx::Rect& client_bounds) const OVERRIDE; | 31 const gfx::Rect& client_bounds) const OVERRIDE; |
32 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 32 virtual int NonClientHitTest(const gfx::Point& point) const OVERRIDE; |
33 virtual void GetWindowMask(const gfx::Size& size, | 33 virtual void GetWindowMask(const gfx::Size& size, |
34 gfx::Path* window_mask) OVERRIDE; | 34 gfx::Path* window_mask) OVERRIDE; |
35 virtual void ResetWindowControls() OVERRIDE; | 35 virtual void ResetWindowControls() OVERRIDE; |
36 virtual void UpdateWindowIcon() OVERRIDE; | 36 virtual void UpdateWindowIcon() OVERRIDE; |
37 virtual void UpdateWindowTitle() OVERRIDE; | 37 virtual void UpdateWindowTitle() OVERRIDE; |
38 | 38 |
39 // View overrides: | 39 // View overrides: |
40 virtual gfx::Insets GetInsets() const OVERRIDE; | 40 virtual gfx::Insets GetInsets() const OVERRIDE; |
41 virtual gfx::Size GetPreferredSize() OVERRIDE; | 41 virtual gfx::Size GetPreferredSize() OVERRIDE; |
42 virtual void Layout() OVERRIDE; | 42 virtual void Layout() OVERRIDE; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // When supplied, this view is placed in the titlebar between the title and | 95 // When supplied, this view is placed in the titlebar between the title and |
96 // (x) close button. | 96 // (x) close button. |
97 View* titlebar_extra_view_; | 97 View* titlebar_extra_view_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 99 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace views | 102 } // namespace views |
103 | 103 |
104 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 104 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
OLD | NEW |