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

Side by Side Diff: chrome/browser/ui/panels/panel.h

Issue 8686012: Make panels not show on top when there is an app running in full screen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PANELS_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Gets the extension that a panel is created from. 53 // Gets the extension that a panel is created from.
54 // Returns NULL if it cannot be found. 54 // Returns NULL if it cannot be found.
55 const Extension* GetExtension() const; 55 const Extension* GetExtension() const;
56 56
57 void SetExpansionState(ExpansionState new_expansion_state); 57 void SetExpansionState(ExpansionState new_expansion_state);
58 58
59 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const; 59 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const;
60 60
61 bool IsDrawingAttention() const; 61 bool IsDrawingAttention() const;
62 62
63 // This function will only get called by PanelManager when full screen mode
64 // changes i.e it gets called when an app goes into full screen mode or when
65 // an app exits full screen mode. Panel should respond by making sure
66 // a) it does not go on top when some app enters full screen mode.
67 // b) it remains on top when an app exits full screen mode.
68 void FullScreenModeChanged(bool is_full_screen_mode_on);
Dmitry Titov 2011/11/30 01:35:53 btw, here naming is ok.
prasadt 2011/11/30 02:38:47 ok
69
63 // BrowserWindow overrides. 70 // BrowserWindow overrides.
64 virtual void Show() OVERRIDE; 71 virtual void Show() OVERRIDE;
65 virtual void ShowInactive() OVERRIDE; 72 virtual void ShowInactive() OVERRIDE;
66 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 73 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
67 virtual void Close() OVERRIDE; 74 virtual void Close() OVERRIDE;
68 virtual void Activate() OVERRIDE; 75 virtual void Activate() OVERRIDE;
69 virtual void Deactivate() OVERRIDE; 76 virtual void Deactivate() OVERRIDE;
70 virtual bool IsActive() const OVERRIDE; 77 virtual bool IsActive() const OVERRIDE;
71 virtual void FlashFrame() OVERRIDE; 78 virtual void FlashFrame() OVERRIDE;
72 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE; 79 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 NativePanel* native_panel_; // Weak, owns us. 282 NativePanel* native_panel_; // Weak, owns us.
276 283
277 ExpansionState expansion_state_; 284 ExpansionState expansion_state_;
278 285
279 content::NotificationRegistrar registrar_; 286 content::NotificationRegistrar registrar_;
280 287
281 DISALLOW_COPY_AND_ASSIGN(Panel); 288 DISALLOW_COPY_AND_ASSIGN(Panel);
282 }; 289 };
283 290
284 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 291 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698