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

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
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 void AshWindowTreeHostUnified::RemapAsNormalWindow() {}
86
85 bool AshWindowTreeHostUnified::ConfineCursorToRootWindow() { 87 bool AshWindowTreeHostUnified::ConfineCursorToRootWindow() {
86 return true; 88 return true;
87 } 89 }
88 90
89 void AshWindowTreeHostUnified::UnConfineCursor() { 91 void AshWindowTreeHostUnified::UnConfineCursor() {
90 } 92 }
91 93
92 void AshWindowTreeHostUnified::SetRootWindowTransformer( 94 void AshWindowTreeHostUnified::SetRootWindowTransformer(
93 scoped_ptr<RootWindowTransformer> transformer) { 95 scoped_ptr<RootWindowTransformer> transformer) {
94 transformer_helper_.SetRootWindowTransformer(transformer.Pass()); 96 transformer_helper_.SetRootWindowTransformer(transformer.Pass());
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ui::KeyEvent* event) { 184 ui::KeyEvent* event) {
183 input_method_handler()->SetPostIME(true); 185 input_method_handler()->SetPostIME(true);
184 ui::EventDispatchDetails details = 186 ui::EventDispatchDetails details =
185 event_processor()->OnEventFromSource(event); 187 event_processor()->OnEventFromSource(event);
186 if (!details.dispatcher_destroyed) 188 if (!details.dispatcher_destroyed)
187 input_method_handler()->SetPostIME(false); 189 input_method_handler()->SetPostIME(false);
188 return details; 190 return details;
189 } 191 }
190 192
191 } // namespace ash 193 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698