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

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

Issue 7677001: Some fixes to panel support 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_PANEL_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 PanelBrowserFrameView(BrowserFrame* frame, PanelBrowserView* browser_view); 36 PanelBrowserFrameView(BrowserFrame* frame, PanelBrowserView* browser_view);
37 virtual ~PanelBrowserFrameView(); 37 virtual ~PanelBrowserFrameView();
38 38
39 void UpdateTitleBar(); 39 void UpdateTitleBar();
40 void OnFocusChanged(bool focused); 40 void OnFocusChanged(bool focused);
41 41
42 // Returns the height of the entire nonclient top border, including the window 42 // Returns the height of the entire nonclient top border, including the window
43 // frame, any title area, and any connected client edge. 43 // frame, any title area, and any connected client edge.
44 int NonClientTopBorderHeight() const; 44 int NonClientTopBorderHeight() const;
45 45
46 // Returns the height of the panel in minimized state.
47 static int MinimizedPanelHeight();
48
46 protected: 49 protected:
47 // Overridden from BrowserNonClientFrameView: 50 // Overridden from BrowserNonClientFrameView:
48 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 51 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
49 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; 52 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE;
50 virtual void UpdateThrobber(bool running) OVERRIDE; 53 virtual void UpdateThrobber(bool running) OVERRIDE;
51 54
52 // Overridden from views::NonClientFrameView: 55 // Overridden from views::NonClientFrameView:
53 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 56 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
54 virtual gfx::Rect GetWindowBoundsForClientBounds( 57 virtual gfx::Rect GetWindowBoundsForClientBounds(
55 const gfx::Rect& client_bounds) const OVERRIDE; 58 const gfx::Rect& client_bounds) const OVERRIDE;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 scoped_ptr<MouseWatcher> mouse_watcher_; 193 scoped_ptr<MouseWatcher> mouse_watcher_;
191 ui::SimpleMenuModel settings_menu_contents_; 194 ui::SimpleMenuModel settings_menu_contents_;
192 views::MenuModelAdapter settings_menu_adapter_; 195 views::MenuModelAdapter settings_menu_adapter_;
193 views::MenuItemView settings_menu_; 196 views::MenuItemView settings_menu_;
194 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; 197 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
195 198
196 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); 199 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView);
197 }; 200 };
198 201
199 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 202 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698