OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 5 #ifndef VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
6 #define VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 6 #define VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "ui/base/animation/animation_delegate.h" | 10 #include "ui/base/animation/animation_delegate.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // Fade the bubble in or out via Widget transparency. | 80 // Fade the bubble in or out via Widget transparency. |
81 // Fade in calls Widget::Show; fade out calls Widget::Close upon completion. | 81 // Fade in calls Widget::Show; fade out calls Widget::Close upon completion. |
82 void StartFade(bool fade_in); | 82 void StartFade(bool fade_in); |
83 | 83 |
84 // Reset fade and opacity of bubble. Restore the opacity of the | 84 // Reset fade and opacity of bubble. Restore the opacity of the |
85 // bubble to the setting before StartFade() was called. | 85 // bubble to the setting before StartFade() was called. |
86 void ResetFade(); | 86 void ResetFade(); |
87 | 87 |
88 protected: | 88 protected: |
89 // View overrides: | 89 // View overrides: |
90 virtual bool AcceleratorPressed(const Accelerator& accelerator) OVERRIDE; | 90 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
91 | 91 |
92 // Perform view initialization on the contents for bubble sizing. | 92 // Perform view initialization on the contents for bubble sizing. |
93 virtual void Init(); | 93 virtual void Init(); |
94 | 94 |
95 private: | 95 private: |
96 FRIEND_TEST_ALL_PREFIXES(BubbleFrameViewBasicTest, NonClientHitTest); | 96 FRIEND_TEST_ALL_PREFIXES(BubbleFrameViewBasicTest, NonClientHitTest); |
97 FRIEND_TEST_ALL_PREFIXES(BubbleDelegateTest, CreateDelegate); | 97 FRIEND_TEST_ALL_PREFIXES(BubbleDelegateTest, CreateDelegate); |
98 | 98 |
99 // ui::AnimationDelegate overrides: | 99 // ui::AnimationDelegate overrides: |
100 virtual void AnimationEnded(const ui::Animation* animation); | 100 virtual void AnimationEnded(const ui::Animation* animation); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Create a popup window for focusless bubbles on Linux/ChromeOS. | 142 // Create a popup window for focusless bubbles on Linux/ChromeOS. |
143 // These bubbles are not interactive and should not gain focus. | 143 // These bubbles are not interactive and should not gain focus. |
144 bool use_focusless_; | 144 bool use_focusless_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); | 146 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); |
147 }; | 147 }; |
148 | 148 |
149 } // namespace views | 149 } // namespace views |
150 | 150 |
151 #endif // VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 151 #endif // VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
OLD | NEW |