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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // NonClientFrameView overrides: | 26 // NonClientFrameView overrides: |
27 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 27 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
28 virtual gfx::Rect GetWindowBoundsForClientBounds( | 28 virtual gfx::Rect GetWindowBoundsForClientBounds( |
29 const gfx::Rect& client_bounds) const OVERRIDE; | 29 const gfx::Rect& client_bounds) const OVERRIDE; |
30 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 30 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
31 virtual void GetWindowMask(const gfx::Size& size, | 31 virtual void GetWindowMask(const gfx::Size& size, |
32 gfx::Path* window_mask) OVERRIDE {} | 32 gfx::Path* window_mask) OVERRIDE {} |
33 virtual void ResetWindowControls() OVERRIDE {} | 33 virtual void ResetWindowControls() OVERRIDE {} |
34 virtual void UpdateWindowIcon() OVERRIDE {} | 34 virtual void UpdateWindowIcon() OVERRIDE {} |
| 35 virtual void UpdateWindowTitle() OVERRIDE {} |
35 | 36 |
36 // View overrides: | 37 // View overrides: |
37 virtual gfx::Size GetPreferredSize() OVERRIDE; | 38 virtual gfx::Size GetPreferredSize() OVERRIDE; |
38 | 39 |
39 BubbleBorder* bubble_border() const { return bubble_border_; } | 40 BubbleBorder* bubble_border() const { return bubble_border_; } |
40 | 41 |
41 gfx::Insets content_margins() const { return content_margins_; } | 42 gfx::Insets content_margins() const { return content_margins_; } |
42 | 43 |
43 // Given the size of the contents and the rect to point at, returns the bounds | 44 // Given the size of the contents and the rect to point at, returns the bounds |
44 // of the bubble window. The bubble's arrow location may change if the bubble | 45 // of the bubble window. The bubble's arrow location may change if the bubble |
(...skipping 28 matching lines...) Expand all Loading... |
73 | 74 |
74 // Margins between the content and the inside of the border, in pixels. | 75 // Margins between the content and the inside of the border, in pixels. |
75 gfx::Insets content_margins_; | 76 gfx::Insets content_margins_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 78 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace views | 81 } // namespace views |
81 | 82 |
82 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 83 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
OLD | NEW |