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

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

Issue 8604012: move chromeos bubble setup code to window.cc (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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 | Annotate | Revision Log
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 UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
6 #define UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 6 #define UI_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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 allow_bubble_offscreen_ = allow_bubble_offscreen; 59 allow_bubble_offscreen_ = allow_bubble_offscreen;
60 } 60 }
61 61
62 View* anchor_view() const { return anchor_view_; } 62 View* anchor_view() const { return anchor_view_; }
63 63
64 bool use_focusless() const { return use_focusless_; } 64 bool use_focusless() const { return use_focusless_; }
65 void set_use_focusless(bool use_focusless) { 65 void set_use_focusless(bool use_focusless) {
66 use_focusless_ = use_focusless; 66 use_focusless_ = use_focusless;
67 } 67 }
68 68
69 bool show_while_screen_is_locked() const {
70 return show_while_screen_is_locked_;
71 }
72 void set_show_while_screen_is_locked(bool show) {
73 show_while_screen_is_locked_ = show;
74 }
75
69 // Get the arrow's anchor point in screen space. 76 // Get the arrow's anchor point in screen space.
70 virtual gfx::Point GetAnchorPoint(); 77 virtual gfx::Point GetAnchorPoint();
71 78
72 // Get the arrow's location on the bubble. 79 // Get the arrow's location on the bubble.
73 virtual BubbleBorder::ArrowLocation GetArrowLocation() const; 80 virtual BubbleBorder::ArrowLocation GetArrowLocation() const;
74 81
75 // Get the color used for the background and border. 82 // Get the color used for the background and border.
76 virtual SkColor GetColor() const; 83 virtual SkColor GetColor() const;
77 84
78 // Show the bubble's widget (and |border_widget_| on Windows). 85 // Show the bubble's widget (and |border_widget_| on Windows).
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Original opacity of the bubble. 145 // Original opacity of the bubble.
139 int original_opacity_; 146 int original_opacity_;
140 147
141 // The widget hosting the border for this bubble (non-Aura Windows only). 148 // The widget hosting the border for this bubble (non-Aura Windows only).
142 Widget* border_widget_; 149 Widget* border_widget_;
143 150
144 // Create a popup window for focusless bubbles on Linux/ChromeOS. 151 // Create a popup window for focusless bubbles on Linux/ChromeOS.
145 // These bubbles are not interactive and should not gain focus. 152 // These bubbles are not interactive and should not gain focus.
146 bool use_focusless_; 153 bool use_focusless_;
147 154
155 // Whether to show this bubble when screen is locked.
msw 2011/11/20 10:30:44 Add "on ChromeOS."?
alicet1 2011/11/20 16:21:45 Done.
156 bool show_while_screen_is_locked_;
157
148 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 158 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
149 }; 159 };
150 160
151 } // namespace views 161 } // namespace views
152 162
153 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 163 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698