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

Side by Side Diff: ui/base/base_window.h

Issue 1158523002: Add user_gesture param to BaseWindow::Show Base URL: https://chromium.googlesource.com/chromium/src.git@ug3_BaseWindow_Activate
Patch Set: Update callers Created 5 years, 7 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
« no previous file with comments | « extensions/shell/browser/shell_native_app_window_aura.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASE_BASE_WINDOW_H_ 5 #ifndef UI_BASE_BASE_WINDOW_H_
6 #define UI_BASE_BASE_WINDOW_H_ 6 #define UI_BASE_BASE_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/base/ui_base_types.h" // WindowShowState 9 #include "ui/base/ui_base_types.h" // WindowShowState
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Returns the restore state for the window (platform dependent). 47 // Returns the restore state for the window (platform dependent).
48 virtual ui::WindowShowState GetRestoredState() const = 0; 48 virtual ui::WindowShowState GetRestoredState() const = 0;
49 49
50 // Retrieves the window's current bounds, including its window. 50 // Retrieves the window's current bounds, including its window.
51 // This will only differ from GetRestoredBounds() for maximized 51 // This will only differ from GetRestoredBounds() for maximized
52 // and minimized windows. 52 // and minimized windows.
53 virtual gfx::Rect GetBounds() const = 0; 53 virtual gfx::Rect GetBounds() const = 0;
54 54
55 // Shows the window, or activates it if it's already visible. 55 // Shows the window, or activates it if it's already visible.
56 virtual void Show() = 0; 56 virtual void Show(bool user_gesture) = 0;
57 57
58 // Hides the window. 58 // Hides the window.
59 virtual void Hide() = 0; 59 virtual void Hide() = 0;
60 60
61 // Show the window, but do not activate it. Does nothing if window 61 // Show the window, but do not activate it. Does nothing if window
62 // is already visible. 62 // is already visible.
63 virtual void ShowInactive() = 0; 63 virtual void ShowInactive() = 0;
64 64
65 // Closes the window as soon as possible. The close action may be delayed 65 // Closes the window as soon as possible. The close action may be delayed
66 // if an operation is in progress (e.g. a drag operation). 66 // if an operation is in progress (e.g. a drag operation).
(...skipping 23 matching lines...) Expand all
90 virtual bool IsAlwaysOnTop() const = 0; 90 virtual bool IsAlwaysOnTop() const = 0;
91 91
92 // If set to true, the window will stay on top of other windows which do not 92 // If set to true, the window will stay on top of other windows which do not
93 // have this flag enabled. 93 // have this flag enabled.
94 virtual void SetAlwaysOnTop(bool always_on_top) = 0; 94 virtual void SetAlwaysOnTop(bool always_on_top) = 0;
95 }; 95 };
96 96
97 } // namespace ui 97 } // namespace ui
98 98
99 #endif // UI_BASE_BASE_WINDOW_H_ 99 #endif // UI_BASE_BASE_WINDOW_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_native_app_window_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698