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