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

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

Issue 7242017: Support minimizing the panel into 3-pixel line on Windows. Also support bringing up/down the titl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 55 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
56 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 56 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
57 OVERRIDE; 57 OVERRIDE;
58 virtual void EnableClose(bool enable) OVERRIDE; 58 virtual void EnableClose(bool enable) OVERRIDE;
59 virtual void ResetWindowControls() OVERRIDE; 59 virtual void ResetWindowControls() OVERRIDE;
60 virtual void UpdateWindowIcon() OVERRIDE; 60 virtual void UpdateWindowIcon() OVERRIDE;
61 61
62 // Overridden from views::View: 62 // Overridden from views::View:
63 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 63 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
64 virtual void OnThemeChanged() OVERRIDE; 64 virtual void OnThemeChanged() OVERRIDE;
65 virtual gfx::Size GetMinimumSize() OVERRIDE;
65 virtual void Layout() OVERRIDE; 66 virtual void Layout() OVERRIDE;
66 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 67 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
67 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 68 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
68 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 69 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
69 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 70 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
70 virtual void OnMouseCaptureLost() OVERRIDE; 71 virtual void OnMouseCaptureLost() OVERRIDE;
71 72
72 // Overridden from views::ButtonListener: 73 // Overridden from views::ButtonListener:
73 virtual void ButtonPressed(views::Button* sender, const views::Event& event) 74 virtual void ButtonPressed(views::Button* sender, const views::Event& event)
74 OVERRIDE; 75 OVERRIDE;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 gfx::Rect client_view_bounds_; 181 gfx::Rect client_view_bounds_;
181 scoped_ptr<MouseWatcher> mouse_watcher_; 182 scoped_ptr<MouseWatcher> mouse_watcher_;
182 scoped_ptr<views::Menu2> settings_menu_; 183 scoped_ptr<views::Menu2> settings_menu_;
183 scoped_ptr<ui::SimpleMenuModel> settings_menu_contents_; 184 scoped_ptr<ui::SimpleMenuModel> settings_menu_contents_;
184 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; 185 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
185 186
186 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); 187 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView);
187 }; 188 };
188 189
189 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 190 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698