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

Side by Side Diff: chrome/browser/extensions/extension_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
« no previous file with comments | « no previous file | chrome/browser/notifications/balloon_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EXTENSIONS_EXTENSION_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool* is_keyboard_shortcut) OVERRIDE; 143 bool* is_keyboard_shortcut) OVERRIDE;
144 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) 144 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event)
145 OVERRIDE; 145 OVERRIDE;
146 virtual void HandleMouseMove() OVERRIDE; 146 virtual void HandleMouseMove() OVERRIDE;
147 virtual void HandleMouseDown() OVERRIDE; 147 virtual void HandleMouseDown() OVERRIDE;
148 virtual void HandleMouseLeave() OVERRIDE; 148 virtual void HandleMouseLeave() OVERRIDE;
149 virtual void HandleMouseUp() OVERRIDE; 149 virtual void HandleMouseUp() OVERRIDE;
150 virtual void HandleMouseActivate() OVERRIDE; 150 virtual void HandleMouseActivate() OVERRIDE;
151 virtual void RunFileChooser(RenderViewHost* render_view_host, 151 virtual void RunFileChooser(RenderViewHost* render_view_host,
152 const ViewHostMsg_RunFileChooser_Params& params); 152 const ViewHostMsg_RunFileChooser_Params& params);
153 virtual void UpdatePreferredSize(const gfx::Size& new_size);
153 154
154 // RenderViewHostDelegate::View 155 // RenderViewHostDelegate::View
155 virtual void CreateNewWindow( 156 virtual void CreateNewWindow(
156 int route_id, 157 int route_id,
157 const ViewHostMsg_CreateWindow_Params& params); 158 const ViewHostMsg_CreateWindow_Params& params);
158 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 159 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type);
159 virtual void CreateNewFullscreenWidget(int route_id); 160 virtual void CreateNewFullscreenWidget(int route_id);
160 virtual void ShowCreatedWindow(int route_id, 161 virtual void ShowCreatedWindow(int route_id,
161 WindowOpenDisposition disposition, 162 WindowOpenDisposition disposition,
162 const gfx::Rect& initial_pos, 163 const gfx::Rect& initial_pos,
163 bool user_gesture); 164 bool user_gesture);
164 virtual void ShowCreatedWidget(int route_id, 165 virtual void ShowCreatedWidget(int route_id,
165 const gfx::Rect& initial_pos); 166 const gfx::Rect& initial_pos);
166 virtual void ShowCreatedFullscreenWidget(int route_id); 167 virtual void ShowCreatedFullscreenWidget(int route_id);
167 virtual void ShowContextMenu(const ContextMenuParams& params); 168 virtual void ShowContextMenu(const ContextMenuParams& params);
168 virtual void ShowPopupMenu(const gfx::Rect& bounds, 169 virtual void ShowPopupMenu(const gfx::Rect& bounds,
169 int item_height, 170 int item_height,
170 double item_font_size, 171 double item_font_size,
171 int selected_item, 172 int selected_item,
172 const std::vector<WebMenuItem>& items, 173 const std::vector<WebMenuItem>& items,
173 bool right_aligned); 174 bool right_aligned);
174 virtual void StartDragging(const WebDropData& drop_data, 175 virtual void StartDragging(const WebDropData& drop_data,
175 WebKit::WebDragOperationsMask allowed_operations, 176 WebKit::WebDragOperationsMask allowed_operations,
176 const SkBitmap& image, 177 const SkBitmap& image,
177 const gfx::Point& image_offset); 178 const gfx::Point& image_offset);
178 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); 179 virtual void UpdateDragCursor(WebKit::WebDragOperation operation);
179 virtual void GotFocus(); 180 virtual void GotFocus();
180 virtual void TakeFocus(bool reverse); 181 virtual void TakeFocus(bool reverse);
181 virtual void UpdatePreferredSize(const gfx::Size& new_size);
182 182
183 // NotificationObserver 183 // NotificationObserver
184 virtual void Observe(int type, 184 virtual void Observe(int type,
185 const NotificationSource& source, 185 const NotificationSource& source,
186 const NotificationDetails& details); 186 const NotificationDetails& details);
187 187
188 // Overridden from content::JavaScriptDialogDelegate: 188 // Overridden from content::JavaScriptDialogDelegate:
189 virtual void OnDialogClosed(IPC::Message* reply_msg, 189 virtual void OnDialogClosed(IPC::Message* reply_msg,
190 bool success, 190 bool success,
191 const string16& user_input) OVERRIDE; 191 const string16& user_input) OVERRIDE;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // The relevant TabContents associated with this ExtensionHost, if any. 279 // The relevant TabContents associated with this ExtensionHost, if any.
280 TabContents* associated_tab_contents_; 280 TabContents* associated_tab_contents_;
281 281
282 // Used to measure how long it's been since the host was created. 282 // Used to measure how long it's been since the host was created.
283 PerfTimer since_created_; 283 PerfTimer since_created_;
284 284
285 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 285 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
286 }; 286 };
287 287
288 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 288 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/balloon_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698