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

Side by Side Diff: ash/host/ash_window_tree_host_unified.cc

Issue 1456963002: Make browser windows override_redirect when dragging tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make browser windows override_redirect when dragging tabs. Created 4 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
« no previous file with comments | « ash/host/ash_window_tree_host_unified.h ('k') | ash/host/ash_window_tree_host_x11.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/host/ash_window_tree_host_unified.h" 5 #include "ash/host/ash_window_tree_host_unified.h"
6 #include "ash/host/root_window_transformer.h" 6 #include "ash/host/root_window_transformer.h"
7 #include "ash/ime/input_method_event_handler.h" 7 #include "ash/ime/input_method_event_handler.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 make_scoped_ptr(new UnifiedEventTargeter(src_root, window()))); 75 make_scoped_ptr(new UnifiedEventTargeter(src_root, window())));
76 DCHECK(std::find(mirroring_hosts_.begin(), mirroring_hosts_.end(), 76 DCHECK(std::find(mirroring_hosts_.begin(), mirroring_hosts_.end(),
77 mirroring_ash_host) == mirroring_hosts_.end()); 77 mirroring_ash_host) == mirroring_hosts_.end());
78 mirroring_hosts_.push_back(mirroring_ash_host); 78 mirroring_hosts_.push_back(mirroring_ash_host);
79 mirroring_ash_host->AsWindowTreeHost()->window()->AddObserver(this); 79 mirroring_ash_host->AsWindowTreeHost()->window()->AddObserver(this);
80 } 80 }
81 81
82 void AshWindowTreeHostUnified::ToggleFullScreen() { 82 void AshWindowTreeHostUnified::ToggleFullScreen() {
83 } 83 }
84 84
85 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
86 void AshWindowTreeHostUnified::RemapAsNormalWindow() {}
87 #endif
88
85 bool AshWindowTreeHostUnified::ConfineCursorToRootWindow() { 89 bool AshWindowTreeHostUnified::ConfineCursorToRootWindow() {
86 return true; 90 return true;
87 } 91 }
88 92
89 void AshWindowTreeHostUnified::UnConfineCursor() { 93 void AshWindowTreeHostUnified::UnConfineCursor() {
90 } 94 }
91 95
92 void AshWindowTreeHostUnified::SetRootWindowTransformer( 96 void AshWindowTreeHostUnified::SetRootWindowTransformer(
93 scoped_ptr<RootWindowTransformer> transformer) { 97 scoped_ptr<RootWindowTransformer> transformer) {
94 transformer_helper_.SetRootWindowTransformer(transformer.Pass()); 98 transformer_helper_.SetRootWindowTransformer(transformer.Pass());
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ui::KeyEvent* event) { 186 ui::KeyEvent* event) {
183 input_method_handler()->SetPostIME(true); 187 input_method_handler()->SetPostIME(true);
184 ui::EventDispatchDetails details = 188 ui::EventDispatchDetails details =
185 event_processor()->OnEventFromSource(event); 189 event_processor()->OnEventFromSource(event);
186 if (!details.dispatcher_destroyed) 190 if (!details.dispatcher_destroyed)
187 input_method_handler()->SetPostIME(false); 191 input_method_handler()->SetPostIME(false);
188 return details; 192 return details;
189 } 193 }
190 194
191 } // namespace ash 195 } // namespace ash
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_unified.h ('k') | ash/host/ash_window_tree_host_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698