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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 297123002: API proposal for chrome.app.window to intercept all keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix permission check in code after rename Created 6 years, 5 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_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 } 321 }
322 322
323 bool DesktopWindowTreeHostWin::HasCapture() const { 323 bool DesktopWindowTreeHostWin::HasCapture() const {
324 return message_handler_->HasCapture(); 324 return message_handler_->HasCapture();
325 } 325 }
326 326
327 void DesktopWindowTreeHostWin::SetAlwaysOnTop(bool always_on_top) { 327 void DesktopWindowTreeHostWin::SetAlwaysOnTop(bool always_on_top) {
328 message_handler_->SetAlwaysOnTop(always_on_top); 328 message_handler_->SetAlwaysOnTop(always_on_top);
329 } 329 }
330 330
331 void DesktopWindowTreeHostWin::SetInterceptAllKeys(bool want_all_keys) {
332 // Post message to window message to enable/disable based on hook.
333 }
334
331 bool DesktopWindowTreeHostWin::IsAlwaysOnTop() const { 335 bool DesktopWindowTreeHostWin::IsAlwaysOnTop() const {
332 return message_handler_->IsAlwaysOnTop(); 336 return message_handler_->IsAlwaysOnTop();
333 } 337 }
334 338
335 void DesktopWindowTreeHostWin::SetVisibleOnAllWorkspaces(bool always_visible) { 339 void DesktopWindowTreeHostWin::SetVisibleOnAllWorkspaces(bool always_visible) {
336 // Windows does not have the concept of workspaces. 340 // Windows does not have the concept of workspaces.
337 } 341 }
338 342
339 bool DesktopWindowTreeHostWin::SetWindowTitle(const base::string16& title) { 343 bool DesktopWindowTreeHostWin::SetWindowTitle(const base::string16& title) {
340 return message_handler_->SetTitle(title); 344 return message_handler_->SetTitle(title);
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 947
944 // static 948 // static
945 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 949 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
946 internal::NativeWidgetDelegate* native_widget_delegate, 950 internal::NativeWidgetDelegate* native_widget_delegate,
947 DesktopNativeWidgetAura* desktop_native_widget_aura) { 951 DesktopNativeWidgetAura* desktop_native_widget_aura) {
948 return new DesktopWindowTreeHostWin(native_widget_delegate, 952 return new DesktopWindowTreeHostWin(native_widget_delegate,
949 desktop_native_widget_aura); 953 desktop_native_widget_aura);
950 } 954 }
951 955
952 } // namespace views 956 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698