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

Side by Side Diff: chrome/browser/ui/cocoa/browser_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: Merge 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 (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_COCOA_BROWSER_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
7 7
8 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void Show() OVERRIDE; 42 virtual void Show() OVERRIDE;
43 virtual void ShowInactive() OVERRIDE; 43 virtual void ShowInactive() OVERRIDE;
44 virtual void Hide() OVERRIDE; 44 virtual void Hide() OVERRIDE;
45 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 45 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
46 virtual void Close() OVERRIDE; 46 virtual void Close() OVERRIDE;
47 virtual void Activate() OVERRIDE; 47 virtual void Activate() OVERRIDE;
48 virtual void Deactivate() OVERRIDE; 48 virtual void Deactivate() OVERRIDE;
49 virtual bool IsActive() const OVERRIDE; 49 virtual bool IsActive() const OVERRIDE;
50 virtual void FlashFrame(bool flash) OVERRIDE; 50 virtual void FlashFrame(bool flash) OVERRIDE;
51 virtual bool IsAlwaysOnTop() const OVERRIDE; 51 virtual bool IsAlwaysOnTop() const OVERRIDE;
52 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
52 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; 53 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
53 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE; 54 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE;
54 virtual StatusBubble* GetStatusBubble() OVERRIDE; 55 virtual StatusBubble* GetStatusBubble() OVERRIDE;
55 virtual void UpdateTitleBar() OVERRIDE; 56 virtual void UpdateTitleBar() OVERRIDE;
56 virtual void BookmarkBarStateChanged( 57 virtual void BookmarkBarStateChanged(
57 BookmarkBar::AnimateChangeType change_type) OVERRIDE; 58 BookmarkBar::AnimateChangeType change_type) OVERRIDE;
58 virtual void UpdateDevTools() OVERRIDE; 59 virtual void UpdateDevTools() OVERRIDE;
59 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE; 60 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE;
60 virtual void SetStarredState(bool is_starred) OVERRIDE; 61 virtual void SetStarredState(bool is_starred) OVERRIDE;
61 virtual void OnActiveTabChanged(content::WebContents* old_contents, 62 virtual void OnActiveTabChanged(content::WebContents* old_contents,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 NSWindow* window() const; // Accessor for the (current) |NSWindow|. 173 NSWindow* window() const; // Accessor for the (current) |NSWindow|.
173 174
174 Browser* browser_; // weak, owned by controller 175 Browser* browser_; // weak, owned by controller
175 BrowserWindowController* controller_; // weak, owns us 176 BrowserWindowController* controller_; // weak, owns us
176 base::scoped_nsobject<NSString> pending_window_title_; 177 base::scoped_nsobject<NSString> pending_window_title_;
177 ui::WindowShowState initial_show_state_; 178 ui::WindowShowState initial_show_state_;
178 NSInteger attention_request_id_; // identifier from requestUserAttention 179 NSInteger attention_request_id_; // identifier from requestUserAttention
179 }; 180 };
180 181
181 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ 182 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698