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

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: Rebase 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
« no previous file with comments | « views/accessible_pane_view_unittest.cc ('k') | views/bubble/bubble_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « views/accessible_pane_view_unittest.cc ('k') | views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698