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

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 unit test based on ben's comment along with fix bug exposed due to that 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_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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 // Sets the widget to be on top of all other widgets in the windowing system. 484 // Sets the widget to be on top of all other widgets in the windowing system.
485 void SetAlwaysOnTop(bool on_top); 485 void SetAlwaysOnTop(bool on_top);
486 486
487 // Returns whether the widget has been set to be on top of most other widgets 487 // Returns whether the widget has been set to be on top of most other widgets
488 // in the windowing system. 488 // in the windowing system.
489 bool IsAlwaysOnTop() const; 489 bool IsAlwaysOnTop() const;
490 490
491 // Sets the widget to be visible on all work spaces. 491 // Sets the widget to be visible on all work spaces.
492 void SetVisibleOnAllWorkspaces(bool always_visible); 492 void SetVisibleOnAllWorkspaces(bool always_visible);
493 493
494 // Sets whether all the keyboard events should be intercepted.
495 void SetInterceptAllKeys(bool want_all_keys);
496
494 // Maximizes/minimizes/restores the window. 497 // Maximizes/minimizes/restores the window.
495 void Maximize(); 498 void Maximize();
496 void Minimize(); 499 void Minimize();
497 void Restore(); 500 void Restore();
498 501
499 // Whether or not the window is maximized or minimized. 502 // Whether or not the window is maximized or minimized.
500 virtual bool IsMaximized() const; 503 virtual bool IsMaximized() const;
501 bool IsMinimized() const; 504 bool IsMinimized() const;
502 505
503 // Accessors for fullscreen state. 506 // Accessors for fullscreen state.
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 bool movement_disabled_; 943 bool movement_disabled_;
941 944
942 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 945 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
943 946
944 DISALLOW_COPY_AND_ASSIGN(Widget); 947 DISALLOW_COPY_AND_ASSIGN(Widget);
945 }; 948 };
946 949
947 } // namespace views 950 } // namespace views
948 951
949 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 952 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698