Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_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> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/public/common/view_type.h" | 17 #include "content/public/common/view_type.h" |
| 18 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
| 19 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebColor.h" | |
| 22 #include "ui/base/javascript_message_type.h" | 23 #include "ui/base/javascript_message_type.h" |
| 23 #include "webkit/glue/window_open_disposition.h" | 24 #include "webkit/glue/window_open_disposition.h" |
| 24 | 25 |
| 25 class GURL; | 26 class GURL; |
| 26 class RenderViewHost; | 27 class RenderViewHost; |
| 27 class SkBitmap; | 28 class SkBitmap; |
| 28 class TabContents; | 29 class TabContents; |
| 29 class WebKeyboardEvent; | 30 class WebKeyboardEvent; |
| 30 struct ContextMenuParams; | 31 struct ContextMenuParams; |
| 31 struct NativeWebKeyboardEvent; | 32 struct NativeWebKeyboardEvent; |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 368 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 368 | 369 |
| 369 // Notifications about mouse events in this view. This is useful for | 370 // Notifications about mouse events in this view. This is useful for |
| 370 // implementing global 'on hover' features external to the view. | 371 // implementing global 'on hover' features external to the view. |
| 371 virtual void HandleMouseMove() {} | 372 virtual void HandleMouseMove() {} |
| 372 virtual void HandleMouseDown() {} | 373 virtual void HandleMouseDown() {} |
| 373 virtual void HandleMouseLeave() {} | 374 virtual void HandleMouseLeave() {} |
| 374 virtual void HandleMouseUp() {} | 375 virtual void HandleMouseUp() {} |
| 375 virtual void HandleMouseActivate() {} | 376 virtual void HandleMouseActivate() {} |
| 376 | 377 |
| 378 virtual void OpenColorChooser(RenderViewHost* render_view_host, | |
|
jam
2012/01/27 18:13:40
nit: please add comments like all the other functi
keishi
2012/02/06 15:01:57
Done.
| |
| 379 const WebKit::WebColor& color) {} | |
| 380 virtual void EndColorChooser(RenderViewHost* render_view_host) {} | |
| 381 virtual void SetSelectedColorInColorChooser(RenderViewHost* render_view_host, | |
| 382 const WebKit::WebColor& color) {} | |
| 383 | |
| 377 // Called when a file selection is to be done. | 384 // Called when a file selection is to be done. |
| 378 virtual void RunFileChooser( | 385 virtual void RunFileChooser( |
| 379 RenderViewHost* render_view_host, | 386 RenderViewHost* render_view_host, |
| 380 const content::FileChooserParams& params) {} | 387 const content::FileChooserParams& params) {} |
| 381 | 388 |
| 382 // Notification that the page wants to go into or out of fullscreen mode. | 389 // Notification that the page wants to go into or out of fullscreen mode. |
| 383 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 390 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} |
| 384 virtual bool IsFullscreenForCurrentTab() const; | 391 virtual bool IsFullscreenForCurrentTab() const; |
| 385 | 392 |
| 386 // The contents' preferred size changed. | 393 // The contents' preferred size changed. |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 399 // Notification that the view has lost the mouse lock. | 406 // Notification that the view has lost the mouse lock. |
| 400 virtual void LostMouseLock() {} | 407 virtual void LostMouseLock() {} |
| 401 | 408 |
| 402 protected: | 409 protected: |
| 403 virtual ~RenderViewHostDelegate() {} | 410 virtual ~RenderViewHostDelegate() {} |
| 404 }; | 411 }; |
| 405 | 412 |
| 406 } // namespace content | 413 } // namespace content |
| 407 | 414 |
| 408 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 415 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |