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

Side by Side Diff: ui/views/widget/widget.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: 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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // Sets the widget to be on top of all other widgets in the windowing system. 481 // Sets the widget to be on top of all other widgets in the windowing system.
482 void SetAlwaysOnTop(bool on_top); 482 void SetAlwaysOnTop(bool on_top);
483 483
484 // Returns whether the widget has been set to be on top of most other widgets 484 // Returns whether the widget has been set to be on top of most other widgets
485 // in the windowing system. 485 // in the windowing system.
486 bool IsAlwaysOnTop() const; 486 bool IsAlwaysOnTop() const;
487 487
488 // Sets the widget to be visible on all work spaces. 488 // Sets the widget to be visible on all work spaces.
489 void SetVisibleOnAllWorkspaces(bool always_visible); 489 void SetVisibleOnAllWorkspaces(bool always_visible);
490 490
491 // Sets whether all the keyboard events should be intercepted.
492 void SetInterceptAllKeys(bool want_all_keys);
493
491 // Maximizes/minimizes/restores the window. 494 // Maximizes/minimizes/restores the window.
492 void Maximize(); 495 void Maximize();
493 void Minimize(); 496 void Minimize();
494 void Restore(); 497 void Restore();
495 498
496 // Whether or not the window is maximized or minimized. 499 // Whether or not the window is maximized or minimized.
497 virtual bool IsMaximized() const; 500 virtual bool IsMaximized() const;
498 bool IsMinimized() const; 501 bool IsMinimized() const;
499 502
500 // Accessors for fullscreen state. 503 // Accessors for fullscreen state.
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 bool movement_disabled_; 931 bool movement_disabled_;
929 932
930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 933 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
931 934
932 DISALLOW_COPY_AND_ASSIGN(Widget); 935 DISALLOW_COPY_AND_ASSIGN(Widget);
933 }; 936 };
934 937
935 } // namespace views 938 } // namespace views
936 939
937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 940 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698