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

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

Issue 9463022: Minimized panels should not open on Windows when activated by the OS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed unnecessary include Created 8 years, 9 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_PANELS_NATIVE_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 28 matching lines...) Expand all
39 39
40 virtual void ShowPanel() = 0; 40 virtual void ShowPanel() = 0;
41 virtual void ShowPanelInactive() = 0; 41 virtual void ShowPanelInactive() = 0;
42 virtual gfx::Rect GetPanelBounds() const = 0; 42 virtual gfx::Rect GetPanelBounds() const = 0;
43 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; 43 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0;
44 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) = 0; 44 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) = 0;
45 virtual void ClosePanel() = 0; 45 virtual void ClosePanel() = 0;
46 virtual void ActivatePanel() = 0; 46 virtual void ActivatePanel() = 0;
47 virtual void DeactivatePanel() = 0; 47 virtual void DeactivatePanel() = 0;
48 virtual bool IsPanelActive() const = 0; 48 virtual bool IsPanelActive() const = 0;
49 virtual void PreventActivationByOS(bool prevent_activation) = 0;
49 virtual gfx::NativeWindow GetNativePanelHandle() = 0; 50 virtual gfx::NativeWindow GetNativePanelHandle() = 0;
50 virtual void UpdatePanelTitleBar() = 0; 51 virtual void UpdatePanelTitleBar() = 0;
51 virtual void UpdatePanelLoadingAnimations(bool should_animate) = 0; 52 virtual void UpdatePanelLoadingAnimations(bool should_animate) = 0;
52 virtual void ShowTaskManagerForPanel() = 0; 53 virtual void ShowTaskManagerForPanel() = 0;
53 virtual FindBar* CreatePanelFindBar() = 0; 54 virtual FindBar* CreatePanelFindBar() = 0;
54 virtual void NotifyPanelOnUserChangedTheme() = 0; 55 virtual void NotifyPanelOnUserChangedTheme() = 0;
55 virtual void PanelWebContentsFocused(content::WebContents* contents) = 0; 56 virtual void PanelWebContentsFocused(content::WebContents* contents) = 0;
56 virtual void PanelCut() = 0; 57 virtual void PanelCut() = 0;
57 virtual void PanelCopy() = 0; 58 virtual void PanelCopy() = 0;
58 virtual void PanelPaste() = 0; 59 virtual void PanelPaste() = 0;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Verifies, on a deepest possible level, if the native panel is really 109 // Verifies, on a deepest possible level, if the native panel is really
109 // active, i.e. the titlebar is painted per its active state. 110 // active, i.e. the titlebar is painted per its active state.
110 virtual bool VerifyActiveState(bool is_active) = 0; 111 virtual bool VerifyActiveState(bool is_active) = 0;
111 virtual void WaitForWindowCreationToComplete() const { } 112 virtual void WaitForWindowCreationToComplete() const { }
112 113
113 virtual bool IsWindowSizeKnown() const = 0; 114 virtual bool IsWindowSizeKnown() const = 0;
114 virtual bool IsAnimatingBounds() const = 0; 115 virtual bool IsAnimatingBounds() const = 0;
115 }; 116 };
116 117
117 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 118 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/overflow_panel_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698