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

Side by Side Diff: ui/views/widget/native_widget_private.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: Updated based on sky's comments 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_PRIVATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/base/ui_base_types.h" 9 #include "ui/base/ui_base_types.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 virtual void Hide() = 0; 187 virtual void Hide() = 0;
188 // Invoked if the initial show should maximize the window. |restored_bounds| 188 // Invoked if the initial show should maximize the window. |restored_bounds|
189 // is the bounds of the window when not maximized. 189 // is the bounds of the window when not maximized.
190 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; 190 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0;
191 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; 191 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0;
192 virtual bool IsVisible() const = 0; 192 virtual bool IsVisible() const = 0;
193 virtual void Activate() = 0; 193 virtual void Activate() = 0;
194 virtual void Deactivate() = 0; 194 virtual void Deactivate() = 0;
195 virtual bool IsActive() const = 0; 195 virtual bool IsActive() const = 0;
196 virtual void SetAlwaysOnTop(bool always_on_top) = 0; 196 virtual void SetAlwaysOnTop(bool always_on_top) = 0;
197 virtual void SetInterceptAllKeys(bool want_all_keys) = 0;
197 virtual bool IsAlwaysOnTop() const = 0; 198 virtual bool IsAlwaysOnTop() const = 0;
198 virtual void SetVisibleOnAllWorkspaces(bool always_visible) = 0; 199 virtual void SetVisibleOnAllWorkspaces(bool always_visible) = 0;
199 virtual void Maximize() = 0; 200 virtual void Maximize() = 0;
200 virtual void Minimize() = 0; 201 virtual void Minimize() = 0;
201 virtual bool IsMaximized() const = 0; 202 virtual bool IsMaximized() const = 0;
202 virtual bool IsMinimized() const = 0; 203 virtual bool IsMinimized() const = 0;
203 virtual void Restore() = 0; 204 virtual void Restore() = 0;
204 virtual void SetFullscreen(bool fullscreen) = 0; 205 virtual void SetFullscreen(bool fullscreen) = 0;
205 virtual bool IsFullscreen() const = 0; 206 virtual bool IsFullscreen() const = 0;
206 virtual void SetOpacity(unsigned char opacity) = 0; 207 virtual void SetOpacity(unsigned char opacity) = 0;
(...skipping 23 matching lines...) Expand all
230 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; 231 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0;
231 232
232 // Overridden from NativeWidget: 233 // Overridden from NativeWidget:
233 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; 234 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE;
234 }; 235 };
235 236
236 } // namespace internal 237 } // namespace internal
237 } // namespace views 238 } // namespace views
238 239
239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 240 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698