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/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 12087124: Disable touch calibration on external touchscreen. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix Win compilation take 2 + rebase Created 7 years, 10 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) 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_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h"
6 6
7 #include "third_party/skia/include/core/SkPath.h" 7 #include "third_party/skia/include/core/SkPath.h"
8 #include "third_party/skia/include/core/SkRegion.h" 8 #include "third_party/skia/include/core/SkRegion.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/default_capture_client.h" 10 #include "ui/aura/client/default_capture_client.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 HWND parent_hwnd = NULL; 93 HWND parent_hwnd = NULL;
94 aura::Window* parent_window = params.parent; 94 aura::Window* parent_window = params.parent;
95 if (parent_window) 95 if (parent_window)
96 parent_hwnd = parent_window->GetRootWindow()->GetAcceleratedWidget(); 96 parent_hwnd = parent_window->GetRootWindow()->GetAcceleratedWidget();
97 97
98 message_handler_->Init(parent_hwnd, params.bounds); 98 message_handler_->Init(parent_hwnd, params.bounds);
99 99
100 message_handler_->set_remove_standard_frame(params.remove_standard_frame); 100 message_handler_->set_remove_standard_frame(params.remove_standard_frame);
101 101
102 aura::RootWindow::CreateParams rw_params(params.bounds); 102 aura::RootWindow::CreateParams rw_params(params.bounds, false);
103 rw_params.host = this; 103 rw_params.host = this;
104 root_window_ = new aura::RootWindow(rw_params); 104 root_window_ = new aura::RootWindow(rw_params);
105 105
106 // TODO(beng): We probably need to move these two calls to some function that 106 // TODO(beng): We probably need to move these two calls to some function that
107 // can change depending on the native-ness of the frame. For right 107 // can change depending on the native-ness of the frame. For right
108 // now in the hack-n-slash days of win-aura, we can just 108 // now in the hack-n-slash days of win-aura, we can just
109 // unilaterally turn this on. 109 // unilaterally turn this on.
110 root_window_->compositor()->SetHostHasTransparentBackground(true); 110 root_window_->compositor()->SetHostHasTransparentBackground(true);
111 root_window_->SetTransparent(true); 111 root_window_->SetTransparent(true);
112 112
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 DesktopRootWindowHost* DesktopRootWindowHost::Create( 765 DesktopRootWindowHost* DesktopRootWindowHost::Create(
766 internal::NativeWidgetDelegate* native_widget_delegate, 766 internal::NativeWidgetDelegate* native_widget_delegate,
767 DesktopNativeWidgetAura* desktop_native_widget_aura, 767 DesktopNativeWidgetAura* desktop_native_widget_aura,
768 const gfx::Rect& initial_bounds) { 768 const gfx::Rect& initial_bounds) {
769 return new DesktopRootWindowHostWin(native_widget_delegate, 769 return new DesktopRootWindowHostWin(native_widget_delegate,
770 desktop_native_widget_aura, 770 desktop_native_widget_aura,
771 initial_bounds); 771 initial_bounds);
772 } 772 }
773 773
774 } // namespace views 774 } // namespace views
OLDNEW
« ui/base/events/event.h ('K') | « ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698