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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc

Issue 11299219: Rework FocusManager as FocusClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/views/widget/desktop_aura/desktop_root_window_host_linux.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_linux.h"
6 6
7 #include <X11/extensions/XInput2.h> 7 #include <X11/extensions/XInput2.h>
8 #include <X11/Xatom.h> 8 #include <X11/Xatom.h>
9 #include <X11/Xutil.h> 9 #include <X11/Xutil.h>
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 native_widget_delegate_->OnNativeWidgetCreated(); 208 native_widget_delegate_->OnNativeWidgetCreated();
209 209
210 capture_client_.reset(new aura::client::DefaultCaptureClient(root_window_)); 210 capture_client_.reset(new aura::client::DefaultCaptureClient(root_window_));
211 aura::client::SetCaptureClient(root_window_, capture_client_.get()); 211 aura::client::SetCaptureClient(root_window_, capture_client_.get());
212 212
213 // Ensure that the X11DesktopHandler exists so that it dispatches activation 213 // Ensure that the X11DesktopHandler exists so that it dispatches activation
214 // messages to us. 214 // messages to us.
215 X11DesktopHandler::get(); 215 X11DesktopHandler::get();
216 216
217 focus_manager_.reset(new aura::FocusManager); 217 focus_client_.reset(new aura::FocusManager);
218 root_window_->set_focus_manager(focus_manager_.get()); 218 aura::client::SetFocusClient(root_window_.GetRootWindow(),
219 focus_client_.get());
219 220
220 activation_client_.reset(new DesktopActivationClient(root_window_)); 221 activation_client_.reset(new DesktopActivationClient(root_window_));
221 222
222 dispatcher_client_.reset(new DesktopDispatcherClient); 223 dispatcher_client_.reset(new DesktopDispatcherClient);
223 aura::client::SetDispatcherClient(root_window_, 224 aura::client::SetDispatcherClient(root_window_,
224 dispatcher_client_.get()); 225 dispatcher_client_.get());
225 226
226 cursor_client_.reset(new DesktopCursorClient(root_window_)); 227 cursor_client_.reset(new DesktopCursorClient(root_window_));
227 aura::client::SetCursorClient(root_window_, 228 aura::client::SetCursorClient(root_window_,
228 cursor_client_.get()); 229 cursor_client_.get());
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 DesktopRootWindowHost* DesktopRootWindowHost::Create( 1094 DesktopRootWindowHost* DesktopRootWindowHost::Create(
1094 internal::NativeWidgetDelegate* native_widget_delegate, 1095 internal::NativeWidgetDelegate* native_widget_delegate,
1095 DesktopNativeWidgetAura* desktop_native_widget_aura, 1096 DesktopNativeWidgetAura* desktop_native_widget_aura,
1096 const gfx::Rect& initial_bounds) { 1097 const gfx::Rect& initial_bounds) {
1097 return new DesktopRootWindowHostLinux(native_widget_delegate, 1098 return new DesktopRootWindowHostLinux(native_widget_delegate,
1098 desktop_native_widget_aura, 1099 desktop_native_widget_aura,
1099 initial_bounds); 1100 initial_bounds);
1100 } 1101 }
1101 1102
1102 } // namespace views 1103 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698