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

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

Issue 119753007: Add GrabWindowSnapshotAsync tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, compiling Created 6 years, 11 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
« no previous file with comments | « ui/aura/root_window_host_win.cc ('k') | ui/aura/test/aura_test_base.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) 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_host_x11.h" 5 #include "ui/aura/root_window_host_x11.h"
6 6
7 #include <strings.h> 7 #include <strings.h>
8 #include <X11/cursorfont.h> 8 #include <X11/cursorfont.h>
9 #include <X11/extensions/Xfixes.h> 9 #include <X11/extensions/Xfixes.h>
10 #include <X11/extensions/XInput2.h> 10 #include <X11/extensions/XInput2.h>
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 CreateCompositor(GetAcceleratedWidget()); 382 CreateCompositor(GetAcceleratedWidget());
383 } 383 }
384 384
385 WindowTreeHostX11::~WindowTreeHostX11() { 385 WindowTreeHostX11::~WindowTreeHostX11() {
386 Env::GetInstance()->RemoveObserver(this); 386 Env::GetInstance()->RemoveObserver(this);
387 base::MessagePumpX11::Current()->RemoveDispatcherForRootWindow(this); 387 base::MessagePumpX11::Current()->RemoveDispatcherForRootWindow(this);
388 base::MessagePumpX11::Current()->RemoveDispatcherForWindow(xwindow_); 388 base::MessagePumpX11::Current()->RemoveDispatcherForWindow(xwindow_);
389 389
390 UnConfineCursor(); 390 UnConfineCursor();
391 391
392 DestroyCompositor();
392 XDestroyWindow(xdisplay_, xwindow_); 393 XDestroyWindow(xdisplay_, xwindow_);
393 } 394 }
394 395
395 bool WindowTreeHostX11::Dispatch(const base::NativeEvent& event) { 396 bool WindowTreeHostX11::Dispatch(const base::NativeEvent& event) {
396 XEvent* xev = event; 397 XEvent* xev = event;
397 398
398 if (FindEventTarget(event) == x_root_window_) 399 if (FindEventTarget(event) == x_root_window_)
399 return DispatchEventForRootWindow(event); 400 return DispatchEventForRootWindow(event);
400 401
401 switch (xev->type) { 402 switch (xev->type) {
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 } 1053 }
1053 1054
1054 namespace test { 1055 namespace test {
1055 1056
1056 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { 1057 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) {
1057 default_override_redirect = override_redirect; 1058 default_override_redirect = override_redirect;
1058 } 1059 }
1059 1060
1060 } // namespace test 1061 } // namespace test
1061 } // namespace aura 1062 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window_host_win.cc ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698