Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: views/bubble/bubble_delegate.h

Issue 8508055: Move views::Accelerator to ui in order to use it from aura code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« views/accelerator.h ('K') | « views/accelerator.h ('k') | views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698