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

Side by Side Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h

Issue 469993003: Add AppWindow.setVisibleOnAllWorkspaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // These are used to simulate Mac-style hide/show. Since windows can be hidden 145 // These are used to simulate Mac-style hide/show. Since windows can be hidden
146 // and shown using the app.window API, this sets is_hidden_with_app_ to 146 // and shown using the app.window API, this sets is_hidden_with_app_ to
147 // differentiate the reason a window was hidden. 147 // differentiate the reason a window was hidden.
148 virtual void ShowWithApp() OVERRIDE; 148 virtual void ShowWithApp() OVERRIDE;
149 virtual void HideWithApp() OVERRIDE; 149 virtual void HideWithApp() OVERRIDE;
150 virtual void UpdateShelfMenu() OVERRIDE; 150 virtual void UpdateShelfMenu() OVERRIDE;
151 virtual gfx::Size GetContentMinimumSize() const OVERRIDE; 151 virtual gfx::Size GetContentMinimumSize() const OVERRIDE;
152 virtual gfx::Size GetContentMaximumSize() const OVERRIDE; 152 virtual gfx::Size GetContentMaximumSize() const OVERRIDE;
153 virtual void SetContentSizeConstraints(const gfx::Size& min_size, 153 virtual void SetContentSizeConstraints(const gfx::Size& min_size,
154 const gfx::Size& max_size) OVERRIDE; 154 const gfx::Size& max_size) OVERRIDE;
155 virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE;
155 156
156 // WebContentsObserver implementation. 157 // WebContentsObserver implementation.
157 virtual void RenderViewCreated(content::RenderViewHost* rvh) OVERRIDE; 158 virtual void RenderViewCreated(content::RenderViewHost* rvh) OVERRIDE;
158 159
159 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; 160 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
160 161
161 // WebContentsModalDialogHost implementation. 162 // WebContentsModalDialogHost implementation.
162 virtual gfx::NativeView GetHostView() const OVERRIDE; 163 virtual gfx::NativeView GetHostView() const OVERRIDE;
163 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 164 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
164 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; 165 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 std::vector<extensions::DraggableRegion> draggable_regions_; 218 std::vector<extensions::DraggableRegion> draggable_regions_;
218 219
219 // The Extension Command Registry used to determine which keyboard events to 220 // The Extension Command Registry used to determine which keyboard events to
220 // handle. 221 // handle.
221 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 222 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
222 223
223 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 224 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
224 }; 225 };
225 226
226 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 227 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698