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

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

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cache state of isAlwaysOnTop in widget. Fixed clobber in x11 window init. Created 7 years, 2 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 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void RenderViewHostChanged( 129 virtual void RenderViewHostChanged(
130 content::RenderViewHost* old_host, 130 content::RenderViewHost* old_host,
131 content::RenderViewHost* new_host) OVERRIDE; 131 content::RenderViewHost* new_host) OVERRIDE;
132 132
133 // These are used to simulate Mac-style hide/show. Since windows can be hidden 133 // These are used to simulate Mac-style hide/show. Since windows can be hidden
134 // and shown using the app.window API, this sets is_hidden_with_app_ to 134 // and shown using the app.window API, this sets is_hidden_with_app_ to
135 // differentiate the reason a window was hidden. 135 // differentiate the reason a window was hidden.
136 virtual void ShowWithApp() OVERRIDE; 136 virtual void ShowWithApp() OVERRIDE;
137 virtual void HideWithApp() OVERRIDE; 137 virtual void HideWithApp() OVERRIDE;
138 138
139 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
140
139 // WebContentsModalDialogHost implementation. 141 // WebContentsModalDialogHost implementation.
140 virtual gfx::NativeView GetHostView() const OVERRIDE; 142 virtual gfx::NativeView GetHostView() const OVERRIDE;
141 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 143 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
142 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; 144 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
143 virtual void AddObserver( 145 virtual void AddObserver(
144 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 146 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
145 virtual void RemoveObserver( 147 virtual void RemoveObserver(
146 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 148 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
147 149
148 private: 150 private:
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 NSPoint last_mouse_location_; 220 NSPoint last_mouse_location_;
219 221
220 // The Extension Command Registry used to determine which keyboard events to 222 // The Extension Command Registry used to determine which keyboard events to
221 // handle. 223 // handle.
222 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 224 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
223 225
224 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 226 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
225 }; 227 };
226 228
227 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 229 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698