| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual void UpdateWindowIcon() OVERRIDE; | 43 virtual void UpdateWindowIcon() OVERRIDE; |
| 44 virtual void UpdateWindowTitle() OVERRIDE; | 44 virtual void UpdateWindowTitle() OVERRIDE; |
| 45 | 45 |
| 46 // View overrides: | 46 // View overrides: |
| 47 virtual gfx::Insets GetInsets() const OVERRIDE; | 47 virtual gfx::Insets GetInsets() const OVERRIDE; |
| 48 virtual gfx::Size GetPreferredSize() OVERRIDE; | 48 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 49 virtual gfx::Size GetMinimumSize() OVERRIDE; | 49 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 50 virtual void Layout() OVERRIDE; | 50 virtual void Layout() OVERRIDE; |
| 51 virtual const char* GetClassName() const OVERRIDE; | 51 virtual const char* GetClassName() const OVERRIDE; |
| 52 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 52 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
| 53 virtual void OnThemeChanged() OVERRIDE; |
| 53 | 54 |
| 54 // Overridden from ButtonListener: | 55 // Overridden from ButtonListener: |
| 55 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; | 56 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; |
| 56 | 57 |
| 57 // Use bubble_border() and SetBubbleBorder(), not border() and set_border(). | 58 // Use bubble_border() and SetBubbleBorder(), not border() and set_border(). |
| 58 BubbleBorder* bubble_border() const { return bubble_border_; } | 59 BubbleBorder* bubble_border() const { return bubble_border_; } |
| 59 void SetBubbleBorder(BubbleBorder* border); | 60 void SetBubbleBorder(BubbleBorder* border); |
| 60 | 61 |
| 61 gfx::Insets content_margins() const { return content_margins_; } | 62 gfx::Insets content_margins() const { return content_margins_; } |
| 62 | 63 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // When supplied, this view is placed in the titlebar between the title and | 105 // When supplied, this view is placed in the titlebar between the title and |
| 105 // (x) close button. | 106 // (x) close button. |
| 106 View* titlebar_extra_view_; | 107 View* titlebar_extra_view_; |
| 107 | 108 |
| 108 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 109 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace views | 112 } // namespace views |
| 112 | 113 |
| 113 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 114 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
| OLD | NEW |