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

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

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 (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_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual gfx::NativeWindow GetNativePanelHandle() = 0; 56 virtual gfx::NativeWindow GetNativePanelHandle() = 0;
57 virtual void UpdatePanelTitleBar() = 0; 57 virtual void UpdatePanelTitleBar() = 0;
58 virtual void ShowTaskManagerForPanel() = 0; 58 virtual void ShowTaskManagerForPanel() = 0;
59 virtual FindBar* CreatePanelFindBar() = 0; 59 virtual FindBar* CreatePanelFindBar() = 0;
60 virtual void NotifyPanelOnUserChangedTheme() = 0; 60 virtual void NotifyPanelOnUserChangedTheme() = 0;
61 virtual void DrawAttention() = 0; 61 virtual void DrawAttention() = 0;
62 virtual bool IsDrawingAttention() const = 0; 62 virtual bool IsDrawingAttention() const = 0;
63 virtual Browser* GetPanelBrowser() const = 0; 63 virtual Browser* GetPanelBrowser() const = 0;
64 virtual void DestroyPanelBrowser() = 0; 64 virtual void DestroyPanelBrowser() = 0;
65 65
66 // Returns the extent of the non-client area, that is, the window size minus
67 // the size of the client area.
68 virtual gfx::Size GetNonClientAreaExtent() const = 0;
69
70 // Gets or sets the restored height, which is the full height of the panel
71 // when it is expanded.
72 virtual int GetRestoredHeight() const = 0;
73 virtual void SetRestoredHeight(int height) = 0;
74
66 // Returns a pointer to the testing interface to the native panel. 75 // Returns a pointer to the testing interface to the native panel.
67 virtual NativePanelTesting* GetNativePanelTesting() = 0; 76 virtual NativePanelTesting* GetNativePanelTesting() = 0;
68 }; 77 };
69 78
70 // A NativePanel utility interface used for accessing elements of the 79 // A NativePanel utility interface used for accessing elements of the
71 // native panel used only by test automation. 80 // native panel used only by test automation.
72 class NativePanelTesting { 81 class NativePanelTesting {
73 public: 82 public:
74 83
75 protected: 84 protected:
76 virtual ~NativePanelTesting() {} 85 virtual ~NativePanelTesting() {}
77 }; 86 };
78 87
79 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 88 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698