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

Side by Side Diff: ui/aura/root_window.cc

Issue 10889024: [cros] Initialize OOBE in parallel when boot animation is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/aura/root_window.h" 5 #include "ui/aura/root_window.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 RootWindow::RootWindow(const gfx::Rect& initial_bounds) 110 RootWindow::RootWindow(const gfx::Rect& initial_bounds)
111 : Window(NULL), 111 : Window(NULL),
112 ALLOW_THIS_IN_INITIALIZER_LIST( 112 ALLOW_THIS_IN_INITIALIZER_LIST(
113 host_(RootWindowHost::Create(this, initial_bounds))), 113 host_(RootWindowHost::Create(this, initial_bounds))),
114 ALLOW_THIS_IN_INITIALIZER_LIST(schedule_paint_factory_(this)), 114 ALLOW_THIS_IN_INITIALIZER_LIST(schedule_paint_factory_(this)),
115 ALLOW_THIS_IN_INITIALIZER_LIST(event_factory_(this)), 115 ALLOW_THIS_IN_INITIALIZER_LIST(event_factory_(this)),
116 mouse_button_flags_(0), 116 mouse_button_flags_(0),
117 touch_ids_down_(0), 117 touch_ids_down_(0),
118 last_cursor_(ui::kCursorNull), 118 last_cursor_(ui::kCursorNull),
119 // TODO(ivankr): this currently tracks the default state in
120 // RootWindowHostLinux. Other platforms do not implement ShowCursor().
121 cursor_shown_(true),
119 mouse_pressed_handler_(NULL), 122 mouse_pressed_handler_(NULL),
120 mouse_moved_handler_(NULL), 123 mouse_moved_handler_(NULL),
121 ALLOW_THIS_IN_INITIALIZER_LIST( 124 ALLOW_THIS_IN_INITIALIZER_LIST(
122 gesture_recognizer_(ui::GestureRecognizer::Create(this))), 125 gesture_recognizer_(ui::GestureRecognizer::Create(this))),
123 synthesize_mouse_move_(false), 126 synthesize_mouse_move_(false),
124 waiting_on_compositing_end_(false), 127 waiting_on_compositing_end_(false),
125 draw_on_compositing_end_(false), 128 draw_on_compositing_end_(false),
126 defer_draw_scheduling_(false), 129 defer_draw_scheduling_(false),
127 mouse_move_hold_count_(0), 130 mouse_move_hold_count_(0),
128 ALLOW_THIS_IN_INITIALIZER_LIST(held_mouse_event_factory_(this)), 131 ALLOW_THIS_IN_INITIALIZER_LIST(held_mouse_event_factory_(this)),
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 void RootWindow::UnlockCompositor() { 1060 void RootWindow::UnlockCompositor() {
1058 DCHECK(compositor_lock_); 1061 DCHECK(compositor_lock_);
1059 compositor_lock_ = NULL; 1062 compositor_lock_ = NULL;
1060 if (draw_on_compositor_unlock_) { 1063 if (draw_on_compositor_unlock_) {
1061 draw_on_compositor_unlock_ = false; 1064 draw_on_compositor_unlock_ = false;
1062 ScheduleDraw(); 1065 ScheduleDraw();
1063 } 1066 }
1064 } 1067 }
1065 1068
1066 } // namespace aura 1069 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698