OLD | NEW |
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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 class GURL; | 27 class GURL; |
28 class RenderViewHost; | 28 class RenderViewHost; |
29 class SkBitmap; | 29 class SkBitmap; |
30 class TabContents; | 30 class TabContents; |
31 class WebKeyboardEvent; | 31 class WebKeyboardEvent; |
32 struct ContextMenuParams; | 32 struct ContextMenuParams; |
33 struct NativeWebKeyboardEvent; | 33 struct NativeWebKeyboardEvent; |
34 struct ViewHostMsg_CreateWindow_Params; | 34 struct ViewHostMsg_CreateWindow_Params; |
35 struct ViewHostMsg_FrameNavigate_Params; | 35 struct ViewHostMsg_FrameNavigate_Params; |
36 struct ViewHostMsg_RunFileChooser_Params; | |
37 struct WebDropData; | 36 struct WebDropData; |
38 struct WebMenuItem; | 37 struct WebMenuItem; |
39 struct WebPreferences; | 38 struct WebPreferences; |
40 | 39 |
41 namespace content { | 40 namespace content { |
42 class BrowserContext; | 41 class BrowserContext; |
| 42 struct FileChooserParams; |
43 struct RendererPreferences; | 43 struct RendererPreferences; |
44 } | 44 } |
45 | 45 |
46 namespace gfx { | 46 namespace gfx { |
47 class Point; | 47 class Point; |
48 class Rect; | 48 class Rect; |
49 class Size; | 49 class Size; |
50 } | 50 } |
51 | 51 |
52 // | 52 // |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // implementing global 'on hover' features external to the view. | 358 // implementing global 'on hover' features external to the view. |
359 virtual void HandleMouseMove() {} | 359 virtual void HandleMouseMove() {} |
360 virtual void HandleMouseDown() {} | 360 virtual void HandleMouseDown() {} |
361 virtual void HandleMouseLeave() {} | 361 virtual void HandleMouseLeave() {} |
362 virtual void HandleMouseUp() {} | 362 virtual void HandleMouseUp() {} |
363 virtual void HandleMouseActivate() {} | 363 virtual void HandleMouseActivate() {} |
364 | 364 |
365 // Called when a file selection is to be done. | 365 // Called when a file selection is to be done. |
366 virtual void RunFileChooser( | 366 virtual void RunFileChooser( |
367 RenderViewHost* render_view_host, | 367 RenderViewHost* render_view_host, |
368 const ViewHostMsg_RunFileChooser_Params& params) {} | 368 const content::FileChooserParams& params) {} |
369 | 369 |
370 // Notification that the page wants to go into or out of fullscreen mode. | 370 // Notification that the page wants to go into or out of fullscreen mode. |
371 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 371 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} |
372 virtual bool IsFullscreenForCurrentTab() const; | 372 virtual bool IsFullscreenForCurrentTab() const; |
373 | 373 |
374 // The contents' preferred size changed. | 374 // The contents' preferred size changed. |
375 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 375 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
376 | 376 |
377 // Notification message from HTML UI. | 377 // Notification message from HTML UI. |
378 virtual void WebUISend(RenderViewHost* render_view_host, | 378 virtual void WebUISend(RenderViewHost* render_view_host, |
379 const GURL& source_url, | 379 const GURL& source_url, |
380 const std::string& name, | 380 const std::string& name, |
381 const base::ListValue& args) {} | 381 const base::ListValue& args) {} |
382 // Requests to lock the mouse. Once the request is approved or rejected, | 382 // Requests to lock the mouse. Once the request is approved or rejected, |
383 // GotResponseToLockMouseRequest() will be called on the requesting render | 383 // GotResponseToLockMouseRequest() will be called on the requesting render |
384 // view host. | 384 // view host. |
385 virtual void RequestToLockMouse() {} | 385 virtual void RequestToLockMouse() {} |
386 | 386 |
387 // Notification that the view has lost the mouse lock. | 387 // Notification that the view has lost the mouse lock. |
388 virtual void LostMouseLock() {} | 388 virtual void LostMouseLock() {} |
389 | 389 |
390 protected: | 390 protected: |
391 virtual ~RenderViewHostDelegate() {} | 391 virtual ~RenderViewHostDelegate() {} |
392 }; | 392 }; |
393 | 393 |
394 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 394 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |