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

Side by Side Diff: chrome/browser/chromeos/login/views_oobe_display.cc

Issue 7129033: Adding a new window type for frameless non-transient top level windows, used by ChromeOS' window ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months 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 #include <vector> 5 #include <vector>
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/chromeos/login/views_eula_screen_actor.h" 8 #include "chrome/browser/chromeos/login/views_eula_screen_actor.h"
9 #include "chrome/browser/chromeos/login/views_oobe_display.h" 9 #include "chrome/browser/chromeos/login/views_oobe_display.h"
10 #include "chrome/browser/chromeos/login/views_network_screen_actor.h" 10 #include "chrome/browser/chromeos/login/views_network_screen_actor.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 209 }
210 210
211 ViewScreenDelegate* ViewsOobeDisplay::GetHTMLPageScreenActor() { 211 ViewScreenDelegate* ViewsOobeDisplay::GetHTMLPageScreenActor() {
212 return this; 212 return this;
213 } 213 }
214 214
215 views::Widget* ViewsOobeDisplay::CreateScreenWindow( 215 views::Widget* ViewsOobeDisplay::CreateScreenWindow(
216 const gfx::Rect& bounds, bool initial_show) { 216 const gfx::Rect& bounds, bool initial_show) {
217 widget_ = new views::Widget; 217 widget_ = new views::Widget;
218 views::Widget::InitParams widget_params( 218 views::Widget::InitParams widget_params(
219 views::Widget::InitParams::TYPE_POPUP); 219 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
220 // Window transparency makes background flicker through controls that 220 // Window transparency makes background flicker through controls that
221 // are constantly updating its contents (like image view with video 221 // are constantly updating its contents (like image view with video
222 // stream). Hence enabling double buffer. 222 // stream). Hence enabling double buffer.
223 widget_params.double_buffer = true; 223 widget_params.double_buffer = true;
224 widget_params.transparent = true; 224 widget_params.transparent = true;
225 widget_params.bounds = bounds; 225 widget_params.bounds = bounds;
226 widget_->Init(widget_params); 226 widget_->Init(widget_params);
227 std::vector<int> params; 227 std::vector<int> params;
228 // For initial show WM would animate background window. 228 // For initial show WM would animate background window.
229 // Otherwise it stays unchanged. 229 // Otherwise it stays unchanged.
(...skipping 25 matching lines...) Expand all
255 255
256 void ViewsOobeDisplay::SetScreenSize(const gfx::Size &screen_size) { 256 void ViewsOobeDisplay::SetScreenSize(const gfx::Size &screen_size) {
257 screen_size_ = screen_size; 257 screen_size_ = screen_size;
258 } 258 }
259 259
260 void ViewsOobeDisplay::SetScreenObserver(ScreenObserver* screen_observer) { 260 void ViewsOobeDisplay::SetScreenObserver(ScreenObserver* screen_observer) {
261 screen_observer_ = screen_observer; 261 screen_observer_ = screen_observer;
262 } 262 }
263 263
264 } // namespace chromeos 264 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698