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

Side by Side Diff: ash/display/mirror_window_controller.cc

Issue 23460052: Move XID, XDisplay, GetXDisplay and a few other types to ui/gfx/x/x11_types.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sdf Created 7 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ash/display/mirror_window_controller.h" 5 #include "ash/display/mirror_window_controller.h"
6 6
7 #if defined(USE_X11) 7 #if defined(USE_X11)
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 9
10 // Xlib.h defines RootWindow. 10 // Xlib.h defines RootWindow.
(...skipping 17 matching lines...) Expand all
28 #include "ui/base/hit_test.h" 28 #include "ui/base/hit_test.h"
29 #include "ui/base/layout.h" 29 #include "ui/base/layout.h"
30 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
31 #include "ui/compositor/reflector.h" 31 #include "ui/compositor/reflector.h"
32 #include "ui/gfx/canvas.h" 32 #include "ui/gfx/canvas.h"
33 #include "ui/gfx/image/image_skia.h" 33 #include "ui/gfx/image/image_skia.h"
34 #include "ui/gfx/image/image_skia_operations.h" 34 #include "ui/gfx/image/image_skia_operations.h"
35 #include "ui/gfx/native_widget_types.h" 35 #include "ui/gfx/native_widget_types.h"
36 36
37 #if defined(USE_X11) 37 #if defined(USE_X11)
38 #include "ui/base/x/x11_util.h" 38 #include "ui/gfx/x/x11_types.h"
39 #endif 39 #endif
40 40
41 namespace ash { 41 namespace ash {
42 namespace internal { 42 namespace internal {
43 namespace { 43 namespace {
44 44
45 #if defined(USE_X11) 45 #if defined(USE_X11)
46 // Mirror window shouldn't handle input events. 46 // Mirror window shouldn't handle input events.
47 void DisableInput(XID window) { 47 void DisableInput(XID window) {
48 long event_mask = ExposureMask | VisibilityChangeMask | 48 long event_mask = ExposureMask | VisibilityChangeMask |
49 StructureNotifyMask | PropertyChangeMask; 49 StructureNotifyMask | PropertyChangeMask;
50 XSelectInput(ui::GetXDisplay(), window, event_mask); 50 XSelectInput(gfx::GetXDisplay(), window, event_mask);
51 } 51 }
52 #endif 52 #endif
53 53
54 class NoneCaptureClient : public aura::client::CaptureClient { 54 class NoneCaptureClient : public aura::client::CaptureClient {
55 public: 55 public:
56 NoneCaptureClient() {} 56 NoneCaptureClient() {}
57 virtual ~NoneCaptureClient() {} 57 virtual ~NoneCaptureClient() {}
58 58
59 private: 59 private:
60 // Does a capture on the |window|. 60 // Does a capture on the |window|.
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 Shell::GetScreen()->GetPrimaryDisplay().id()); 336 Shell::GetScreen()->GetPrimaryDisplay().id());
337 DCHECK(display_manager->mirrored_display().is_valid()); 337 DCHECK(display_manager->mirrored_display().is_valid());
338 return scoped_ptr<aura::RootWindowTransformer>( 338 return scoped_ptr<aura::RootWindowTransformer>(
339 internal::CreateRootWindowTransformerForMirroredDisplay( 339 internal::CreateRootWindowTransformerForMirroredDisplay(
340 source_display_info, 340 source_display_info,
341 mirror_display_info)); 341 mirror_display_info));
342 } 342 }
343 343
344 } // namespace internal 344 } // namespace internal
345 } // namespace ash 345 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | chrome/browser/chromeos/keyboard_driven_event_rewriter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698