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

Side by Side Diff: chrome/browser/notifications/balloon_host.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_NOTIFICATIONS_BALLOON_HOST_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 56 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
57 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; 57 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE;
58 virtual void RenderViewGone(RenderViewHost* render_view_host, 58 virtual void RenderViewGone(RenderViewHost* render_view_host,
59 base::TerminationStatus status, 59 base::TerminationStatus status,
60 int error_code) OVERRIDE; 60 int error_code) OVERRIDE;
61 virtual ViewType::Type GetRenderViewType() const OVERRIDE; 61 virtual ViewType::Type GetRenderViewType() const OVERRIDE;
62 virtual RenderViewHostDelegate::View* GetViewDelegate() OVERRIDE; 62 virtual RenderViewHostDelegate::View* GetViewDelegate() OVERRIDE;
63 virtual void HandleMouseDown() OVERRIDE; 63 virtual void HandleMouseDown() OVERRIDE;
64 virtual RendererPreferences GetRendererPrefs( 64 virtual RendererPreferences GetRendererPrefs(
65 content::BrowserContext* browser_context) const OVERRIDE; 65 content::BrowserContext* browser_context) const OVERRIDE;
66 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
66 67
67 // RenderViewHostDelegate::View methods. Only the ones for opening new 68 // RenderViewHostDelegate::View methods. Only the ones for opening new
68 // windows are currently implemented. 69 // windows are currently implemented.
69 virtual void CreateNewWindow( 70 virtual void CreateNewWindow(
70 int route_id, 71 int route_id,
71 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; 72 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE;
72 virtual void CreateNewWidget(int route_id, 73 virtual void CreateNewWidget(int route_id,
73 WebKit::WebPopupType popup_type) OVERRIDE {} 74 WebKit::WebPopupType popup_type) OVERRIDE {}
74 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE {} 75 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE {}
75 virtual void ShowCreatedWindow(int route_id, 76 virtual void ShowCreatedWindow(int route_id,
(...skipping 10 matching lines...) Expand all
86 int selected_item, 87 int selected_item,
87 const std::vector<WebMenuItem>& items, 88 const std::vector<WebMenuItem>& items,
88 bool right_aligned) OVERRIDE {} 89 bool right_aligned) OVERRIDE {}
89 virtual void StartDragging(const WebDropData&, 90 virtual void StartDragging(const WebDropData&,
90 WebKit::WebDragOperationsMask, 91 WebKit::WebDragOperationsMask,
91 const SkBitmap&, 92 const SkBitmap&,
92 const gfx::Point&) OVERRIDE {} 93 const gfx::Point&) OVERRIDE {}
93 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE {} 94 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE {}
94 virtual void GotFocus() OVERRIDE {} 95 virtual void GotFocus() OVERRIDE {}
95 virtual void TakeFocus(bool reverse) OVERRIDE {} 96 virtual void TakeFocus(bool reverse) OVERRIDE {}
96 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
97 97
98 // Enable Web UI. This has to be called before renderer is created. 98 // Enable Web UI. This has to be called before renderer is created.
99 void EnableWebUI(); 99 void EnableWebUI();
100 100
101 // Returns whether the associated render view is ready. Used only for testing. 101 // Returns whether the associated render view is ready. Used only for testing.
102 bool IsRenderViewReady() const; 102 bool IsRenderViewReady() const;
103 103
104 protected: 104 protected:
105 virtual ~BalloonHost(); 105 virtual ~BalloonHost();
106 // Must override in platform specific implementations. 106 // Must override in platform specific implementations.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Common implementations of some RenderViewHostDelegate::View methods. 138 // Common implementations of some RenderViewHostDelegate::View methods.
139 RenderViewHostDelegateViewHelper delegate_view_helper_; 139 RenderViewHostDelegateViewHelper delegate_view_helper_;
140 140
141 // A flag to enable Web UI. 141 // A flag to enable Web UI.
142 bool enable_web_ui_; 142 bool enable_web_ui_;
143 143
144 ExtensionFunctionDispatcher extension_function_dispatcher_; 144 ExtensionFunctionDispatcher extension_function_dispatcher_;
145 }; 145 };
146 146
147 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 147 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.h ('k') | chrome/browser/tab_contents/background_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698