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

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: move functionality of wm ipc out of browser so that views/bubble can use it. 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
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble.cc ('k') | ui/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 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 #if defined(OS_CHROMEOS)
Daniel Erat 2011/11/21 21:15:57 to be clear, i meant that everything screen-lock-r
alicet1 2011/11/21 23:01:21 I left the member variable there, as it is rather
70 bool show_while_screen_is_locked() const {
71 return show_while_screen_is_locked_;
72 }
73 #endif
74
75 void set_show_while_screen_is_locked(bool show) {
76 show_while_screen_is_locked_ = show;
77 }
78
69 // Get the arrow's anchor point in screen space. 79 // Get the arrow's anchor point in screen space.
70 virtual gfx::Point GetAnchorPoint(); 80 virtual gfx::Point GetAnchorPoint();
71 81
72 // Get the arrow's location on the bubble. 82 // Get the arrow's location on the bubble.
73 virtual BubbleBorder::ArrowLocation GetArrowLocation() const; 83 virtual BubbleBorder::ArrowLocation GetArrowLocation() const;
74 84
75 // Get the color used for the background and border. 85 // Get the color used for the background and border.
76 virtual SkColor GetColor() const; 86 virtual SkColor GetColor() const;
77 87
78 // Show the bubble's widget (and |border_widget_| on Windows). 88 // 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. 148 // Original opacity of the bubble.
139 int original_opacity_; 149 int original_opacity_;
140 150
141 // The widget hosting the border for this bubble (non-Aura Windows only). 151 // The widget hosting the border for this bubble (non-Aura Windows only).
142 Widget* border_widget_; 152 Widget* border_widget_;
143 153
144 // Create a popup window for focusless bubbles on Linux/ChromeOS. 154 // Create a popup window for focusless bubbles on Linux/ChromeOS.
145 // These bubbles are not interactive and should not gain focus. 155 // These bubbles are not interactive and should not gain focus.
146 bool use_focusless_; 156 bool use_focusless_;
147 157
158 // Whether to show this bubble when screen is locked on ChromeOS.
159 bool show_while_screen_is_locked_;
160
148 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 161 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
149 }; 162 };
150 163
151 } // namespace views 164 } // namespace views
152 165
153 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 166 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble.cc ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698