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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

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: Return if there is no windows with keyboard focus. Created 6 years, 4 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 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
7 7
8 #include <X11/extensions/shape.h> 8 #include <X11/extensions/shape.h>
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual bool IsActive() const OVERRIDE; 117 virtual bool IsActive() const OVERRIDE;
118 virtual void Maximize() OVERRIDE; 118 virtual void Maximize() OVERRIDE;
119 virtual void Minimize() OVERRIDE; 119 virtual void Minimize() OVERRIDE;
120 virtual void Restore() OVERRIDE; 120 virtual void Restore() OVERRIDE;
121 virtual bool IsMaximized() const OVERRIDE; 121 virtual bool IsMaximized() const OVERRIDE;
122 virtual bool IsMinimized() const OVERRIDE; 122 virtual bool IsMinimized() const OVERRIDE;
123 virtual bool HasCapture() const OVERRIDE; 123 virtual bool HasCapture() const OVERRIDE;
124 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; 124 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
125 virtual bool IsAlwaysOnTop() const OVERRIDE; 125 virtual bool IsAlwaysOnTop() const OVERRIDE;
126 virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE; 126 virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE;
127 virtual void SetInterceptAllKeys(bool want_all_keys) OVERRIDE;
127 virtual bool SetWindowTitle(const base::string16& title) OVERRIDE; 128 virtual bool SetWindowTitle(const base::string16& title) OVERRIDE;
128 virtual void ClearNativeFocus() OVERRIDE; 129 virtual void ClearNativeFocus() OVERRIDE;
129 virtual Widget::MoveLoopResult RunMoveLoop( 130 virtual Widget::MoveLoopResult RunMoveLoop(
130 const gfx::Vector2d& drag_offset, 131 const gfx::Vector2d& drag_offset,
131 Widget::MoveLoopSource source, 132 Widget::MoveLoopSource source,
132 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; 133 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE;
133 virtual void EndMoveLoop() OVERRIDE; 134 virtual void EndMoveLoop() OVERRIDE;
134 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 135 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
135 virtual bool ShouldUseNativeFrame() const OVERRIDE; 136 virtual bool ShouldUseNativeFrame() const OVERRIDE;
136 virtual bool ShouldWindowContentsBeTransparent() const OVERRIDE; 137 virtual bool ShouldWindowContentsBeTransparent() const OVERRIDE;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 bool urgency_hint_set_; 346 bool urgency_hint_set_;
346 347
347 base::CancelableCallback<void()> delayed_resize_task_; 348 base::CancelableCallback<void()> delayed_resize_task_;
348 349
349 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); 350 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
350 }; 351 };
351 352
352 } // namespace views 353 } // namespace views
353 354
354 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 355 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698