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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_cocoa.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, 3 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_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; 45 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
46 virtual void DrawAttention() OVERRIDE; 46 virtual void DrawAttention() OVERRIDE;
47 virtual bool IsDrawingAttention() const OVERRIDE; 47 virtual bool IsDrawingAttention() const OVERRIDE;
48 virtual bool PreHandlePanelKeyboardEvent( 48 virtual bool PreHandlePanelKeyboardEvent(
49 const NativeWebKeyboardEvent& event, 49 const NativeWebKeyboardEvent& event,
50 bool* is_keyboard_shortcut) OVERRIDE; 50 bool* is_keyboard_shortcut) OVERRIDE;
51 virtual void HandlePanelKeyboardEvent( 51 virtual void HandlePanelKeyboardEvent(
52 const NativeWebKeyboardEvent& event) OVERRIDE; 52 const NativeWebKeyboardEvent& event) OVERRIDE;
53 virtual Browser* GetPanelBrowser() const OVERRIDE; 53 virtual Browser* GetPanelBrowser() const OVERRIDE;
54 virtual void DestroyPanelBrowser() OVERRIDE; 54 virtual void DestroyPanelBrowser() OVERRIDE;
55 virtual gfx::Size GetNonClientAreaExtent() const OVERRIDE;
56 virtual int GetRestoredHeight() const OVERRIDE;
57 virtual void SetRestoredHeight(int height) OVERRIDE;
55 58
56 Panel* panel() { return panel_.get(); } 59 Panel* panel() { return panel_.get(); }
57 Browser* browser() const { return browser_.get(); } 60 Browser* browser() const { return browser_.get(); }
58 61
59 // Callback from PanelWindowControllerCocoa that native window was actually 62 // Callback from PanelWindowControllerCocoa that native window was actually
60 // closed. The window may not close right away because of onbeforeunload 63 // closed. The window may not close right away because of onbeforeunload
61 // handlers. 64 // handlers.
62 void didCloseNativeWindow(); 65 void didCloseNativeWindow();
63 66
64 private: 67 private:
(...skipping 12 matching lines...) Expand all
77 scoped_ptr<Panel> panel_; 80 scoped_ptr<Panel> panel_;
78 gfx::Rect bounds_; 81 gfx::Rect bounds_;
79 PanelWindowControllerCocoa* controller_; // Weak, owns us. 82 PanelWindowControllerCocoa* controller_; // Weak, owns us.
80 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. 83 bool is_shown_; // Panel is hidden on creation, Show() changes that forever.
81 bool has_find_bar_; // Find bar should only be created once per panel. 84 bool has_find_bar_; // Find bar should only be created once per panel.
82 85
83 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); 86 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa);
84 }; 87 };
85 88
86 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 89 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view_browsertest.cc ('k') | chrome/browser/ui/panels/panel_browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698