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

Side by Side Diff: chrome/browser/ui/base_window.h

Issue 11147037: Add a 'hidden' option to chrome.app.window.create() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ash tests Created 8 years, 1 month 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 | Annotate | Revision Log
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 CHROME_BROWSER_UI_BASE_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BASE_WINDOW_H_
6 #define CHROME_BROWSER_UI_BASE_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BASE_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
(...skipping 28 matching lines...) Expand all
39 virtual gfx::Rect GetRestoredBounds() const = 0; 39 virtual gfx::Rect GetRestoredBounds() const = 0;
40 40
41 // Retrieves the window's current bounds, including its window. 41 // Retrieves the window's current bounds, including its window.
42 // This will only differ from GetRestoredBounds() for maximized 42 // This will only differ from GetRestoredBounds() for maximized
43 // and minimized windows. 43 // and minimized windows.
44 virtual gfx::Rect GetBounds() const = 0; 44 virtual gfx::Rect GetBounds() const = 0;
45 45
46 // Shows the window, or activates it if it's already visible. 46 // Shows the window, or activates it if it's already visible.
47 virtual void Show() = 0; 47 virtual void Show() = 0;
48 48
49 // Hides the window.
50 virtual void Hide() = 0;
51
49 // Show the window, but do not activate it. Does nothing if window 52 // Show the window, but do not activate it. Does nothing if window
50 // is already visible. 53 // is already visible.
51 virtual void ShowInactive() = 0; 54 virtual void ShowInactive() = 0;
52 55
53 // Closes the window as soon as possible. The close action may be delayed 56 // Closes the window as soon as possible. The close action may be delayed
54 // if an operation is in progress (e.g. a drag operation). 57 // if an operation is in progress (e.g. a drag operation).
55 virtual void Close() = 0; 58 virtual void Close() = 0;
56 59
57 // Activates (brings to front) the window. Restores the window from minimized 60 // Activates (brings to front) the window. Restores the window from minimized
58 // state if necessary. 61 // state if necessary.
(...skipping 13 matching lines...) Expand all
72 75
73 // Flashes the taskbar item associated with this window. 76 // Flashes the taskbar item associated with this window.
74 // Set |flash| to true to initiate flashing, false to stop flashing. 77 // Set |flash| to true to initiate flashing, false to stop flashing.
75 virtual void FlashFrame(bool flash) = 0; 78 virtual void FlashFrame(bool flash) = 0;
76 79
77 // Returns true if a window is set to be always on top. 80 // Returns true if a window is set to be always on top.
78 virtual bool IsAlwaysOnTop() const = 0; 81 virtual bool IsAlwaysOnTop() const = 0;
79 }; 82 };
80 83
81 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ 84 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/app_window/app_window_api.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698