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

Side by Side Diff: chrome/browser/extensions/extension_host.h

Issue 4078003: Refactoring select popup on Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <list>
9 #include <string> 10 #include <string>
10 #include <list> 11 #include <vector>
11 12
12 #include "base/perftimer.h" 13 #include "base/perftimer.h"
13 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
14 #include "chrome/browser/extensions/extension_function_dispatcher.h" 15 #include "chrome/browser/extensions/extension_function_dispatcher.h"
15 #include "chrome/browser/js_modal_dialog.h" 16 #include "chrome/browser/js_modal_dialog.h"
16 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 17 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
17 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" 18 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
18 #if defined(TOOLKIT_VIEWS) 19 #if defined(TOOLKIT_VIEWS)
19 #include "chrome/browser/views/extensions/extension_view.h" 20 #include "chrome/browser/views/extensions/extension_view.h"
20 #elif defined(OS_MACOSX) 21 #elif defined(OS_MACOSX)
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 virtual void CreateNewFullscreenWidget(int route_id, 149 virtual void CreateNewFullscreenWidget(int route_id,
149 WebKit::WebPopupType popup_type); 150 WebKit::WebPopupType popup_type);
150 virtual void ShowCreatedWindow(int route_id, 151 virtual void ShowCreatedWindow(int route_id,
151 WindowOpenDisposition disposition, 152 WindowOpenDisposition disposition,
152 const gfx::Rect& initial_pos, 153 const gfx::Rect& initial_pos,
153 bool user_gesture); 154 bool user_gesture);
154 virtual void ShowCreatedWidget(int route_id, 155 virtual void ShowCreatedWidget(int route_id,
155 const gfx::Rect& initial_pos); 156 const gfx::Rect& initial_pos);
156 virtual void ShowCreatedFullscreenWidget(int route_id); 157 virtual void ShowCreatedFullscreenWidget(int route_id);
157 virtual void ShowContextMenu(const ContextMenuParams& params); 158 virtual void ShowContextMenu(const ContextMenuParams& params);
159 virtual void ShowPopupMenu(const gfx::Rect& bounds,
160 int item_height,
161 double item_font_size,
162 int selected_item,
163 const std::vector<WebMenuItem>& items,
164 bool right_aligned);
158 virtual void StartDragging(const WebDropData& drop_data, 165 virtual void StartDragging(const WebDropData& drop_data,
159 WebKit::WebDragOperationsMask allowed_operations, 166 WebKit::WebDragOperationsMask allowed_operations,
160 const SkBitmap& image, 167 const SkBitmap& image,
161 const gfx::Point& image_offset); 168 const gfx::Point& image_offset);
162 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); 169 virtual void UpdateDragCursor(WebKit::WebDragOperation operation);
163 virtual void GotFocus(); 170 virtual void GotFocus();
164 virtual void TakeFocus(bool reverse); 171 virtual void TakeFocus(bool reverse);
165 virtual void LostCapture(); 172 virtual void LostCapture();
166 virtual void Activate(); 173 virtual void Activate();
167 virtual void Deactivate(); 174 virtual void Deactivate();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // Used to measure how long it's been since the host was created. 281 // Used to measure how long it's been since the host was created.
275 PerfTimer since_created_; 282 PerfTimer since_created_;
276 283
277 // FileSelectHelper, lazily created. 284 // FileSelectHelper, lazily created.
278 scoped_ptr<FileSelectHelper> file_select_helper_; 285 scoped_ptr<FileSelectHelper> file_select_helper_;
279 286
280 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 287 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
281 }; 288 };
282 289
283 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 290 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/background_contents_service.h ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698