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

Side by Side Diff: ui/views/widget/native_widget_aura.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_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/aura/client/focus_change_observer.h" 10 #include "ui/aura/client/focus_change_observer.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void Show() OVERRIDE; 95 virtual void Show() OVERRIDE;
96 virtual void Hide() OVERRIDE; 96 virtual void Hide() OVERRIDE;
97 virtual void ShowMaximizedWithBounds( 97 virtual void ShowMaximizedWithBounds(
98 const gfx::Rect& restored_bounds) OVERRIDE; 98 const gfx::Rect& restored_bounds) OVERRIDE;
99 virtual void ShowWithWindowState(ui::WindowShowState state) OVERRIDE; 99 virtual void ShowWithWindowState(ui::WindowShowState state) OVERRIDE;
100 virtual bool IsVisible() const OVERRIDE; 100 virtual bool IsVisible() const OVERRIDE;
101 virtual void Activate() OVERRIDE; 101 virtual void Activate() OVERRIDE;
102 virtual void Deactivate() OVERRIDE; 102 virtual void Deactivate() OVERRIDE;
103 virtual bool IsActive() const OVERRIDE; 103 virtual bool IsActive() const OVERRIDE;
104 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; 104 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
105 virtual void SetInterceptAllKeys(bool want_all_keys) OVERRIDE;
105 virtual bool IsAlwaysOnTop() const OVERRIDE; 106 virtual bool IsAlwaysOnTop() const OVERRIDE;
106 virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE; 107 virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE;
107 virtual void Maximize() OVERRIDE; 108 virtual void Maximize() OVERRIDE;
108 virtual void Minimize() OVERRIDE; 109 virtual void Minimize() OVERRIDE;
109 virtual bool IsMaximized() const OVERRIDE; 110 virtual bool IsMaximized() const OVERRIDE;
110 virtual bool IsMinimized() const OVERRIDE; 111 virtual bool IsMinimized() const OVERRIDE;
111 virtual void Restore() OVERRIDE; 112 virtual void Restore() OVERRIDE;
112 virtual void SetFullscreen(bool fullscreen) OVERRIDE; 113 virtual void SetFullscreen(bool fullscreen) OVERRIDE;
113 virtual bool IsFullscreen() const OVERRIDE; 114 virtual bool IsFullscreen() const OVERRIDE;
114 virtual void SetOpacity(unsigned char opacity) OVERRIDE; 115 virtual void SetOpacity(unsigned char opacity) OVERRIDE;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 222
222 scoped_ptr<DropHelper> drop_helper_; 223 scoped_ptr<DropHelper> drop_helper_;
223 int last_drop_operation_; 224 int last_drop_operation_;
224 225
225 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 226 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
226 }; 227 };
227 228
228 } // namespace views 229 } // namespace views
229 230
230 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 231 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698