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

Side by Side Diff: ui/aura/remote_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/aura/remote_root_window_host_win.h" 5 #include "ui/aura/remote_root_window_host_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 callback); 72 callback);
73 } 73 }
74 74
75 RemoteRootWindowHostWin* g_instance = NULL; 75 RemoteRootWindowHostWin* g_instance = NULL;
76 76
77 RemoteRootWindowHostWin* RemoteRootWindowHostWin::Instance() { 77 RemoteRootWindowHostWin* RemoteRootWindowHostWin::Instance() {
78 return g_instance; 78 return g_instance;
79 } 79 }
80 80
81 RemoteRootWindowHostWin* RemoteRootWindowHostWin::Create( 81 RemoteRootWindowHostWin* RemoteRootWindowHostWin::Create(
82 const gfx::Rect& bounds) { 82 const gfx::Rect& bounds,
83 bool is_internal_display) {
83 g_instance = new RemoteRootWindowHostWin(bounds); 84 g_instance = new RemoteRootWindowHostWin(bounds);
84 return g_instance; 85 return g_instance;
85 } 86 }
86 87
87 RemoteRootWindowHostWin::RemoteRootWindowHostWin(const gfx::Rect& bounds) 88 RemoteRootWindowHostWin::RemoteRootWindowHostWin(const gfx::Rect& bounds)
88 : delegate_(NULL), host_(NULL) { 89 : delegate_(NULL), host_(NULL) {
89 prop_.reset(new ui::ViewProp(NULL, kRootWindowHostWinKey, this)); 90 prop_.reset(new ui::ViewProp(NULL, kRootWindowHostWinKey, this));
90 } 91 }
91 92
92 RemoteRootWindowHostWin::~RemoteRootWindowHostWin() { 93 RemoteRootWindowHostWin::~RemoteRootWindowHostWin() {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 void RemoteRootWindowHostWin::OnMultiFileOpenDone( 400 void RemoteRootWindowHostWin::OnMultiFileOpenDone(
400 bool success, 401 bool success,
401 const std::vector<FilePath>& files) { 402 const std::vector<FilePath>& files) {
402 if (success) { 403 if (success) {
403 multi_file_open_completion_callback_.Run(files, NULL); 404 multi_file_open_completion_callback_.Run(files, NULL);
404 } 405 }
405 multi_file_open_completion_callback_.Reset(); 406 multi_file_open_completion_callback_.Reset();
406 } 407 }
407 408
408 } // namespace aura 409 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698