| 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 28 matching lines...) Expand all Loading... |
| 39 // NonClientFrameView overrides: | 39 // NonClientFrameView overrides: |
| 40 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 40 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 41 virtual gfx::Rect GetWindowBoundsForClientBounds( | 41 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 42 const gfx::Rect& client_bounds) const OVERRIDE; | 42 const gfx::Rect& client_bounds) const OVERRIDE; |
| 43 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 43 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 44 virtual void GetWindowMask(const gfx::Size& size, | 44 virtual void GetWindowMask(const gfx::Size& size, |
| 45 gfx::Path* window_mask) OVERRIDE; | 45 gfx::Path* window_mask) OVERRIDE; |
| 46 virtual void ResetWindowControls() OVERRIDE; | 46 virtual void ResetWindowControls() OVERRIDE; |
| 47 virtual void UpdateWindowIcon() OVERRIDE; | 47 virtual void UpdateWindowIcon() OVERRIDE; |
| 48 virtual void UpdateWindowTitle() OVERRIDE; | 48 virtual void UpdateWindowTitle() OVERRIDE; |
| 49 virtual void SizeConstraintsChanged() OVERRIDE; |
| 49 | 50 |
| 50 // Set the FontList to be used for the title of the bubble. | 51 // Set the FontList to be used for the title of the bubble. |
| 51 // Caller must arrange to update the layout to have the call take effect. | 52 // Caller must arrange to update the layout to have the call take effect. |
| 52 void SetTitleFontList(const gfx::FontList& font_list); | 53 void SetTitleFontList(const gfx::FontList& font_list); |
| 53 | 54 |
| 54 // View overrides: | 55 // View overrides: |
| 55 virtual gfx::Insets GetInsets() const OVERRIDE; | 56 virtual gfx::Insets GetInsets() const OVERRIDE; |
| 56 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 57 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 57 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 58 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 58 virtual void Layout() OVERRIDE; | 59 virtual void Layout() OVERRIDE; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // When supplied, this view is placed in the titlebar between the title and | 114 // When supplied, this view is placed in the titlebar between the title and |
| 114 // (x) close button. | 115 // (x) close button. |
| 115 View* titlebar_extra_view_; | 116 View* titlebar_extra_view_; |
| 116 | 117 |
| 117 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 118 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 } // namespace views | 121 } // namespace views |
| 121 | 122 |
| 122 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 123 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
| OLD | NEW |