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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 const gfx::Rect& resizer_rect); | 616 const gfx::Rect& resizer_rect); |
617 virtual void DidInitiatePaint(); | 617 virtual void DidInitiatePaint(); |
618 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 618 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
619 const gfx::Rect& paint_bounds, | 619 const gfx::Rect& paint_bounds, |
620 TransportDIB** dib, | 620 TransportDIB** dib, |
621 gfx::Rect* location, | 621 gfx::Rect* location, |
622 gfx::Rect* clip); | 622 gfx::Rect* clip); |
623 virtual gfx::Point GetScrollOffset(); | 623 virtual gfx::Point GetScrollOffset(); |
624 virtual void DidHandleKeyEvent(); | 624 virtual void DidHandleKeyEvent(); |
625 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); | 625 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); |
| 626 virtual bool BeforeHandleMouseEvent( |
| 627 const WebKit::WebMouseEvent& event) OVERRIDE; |
626 virtual void OnSetFocus(bool enable); | 628 virtual void OnSetFocus(bool enable); |
627 virtual void OnWasHidden(); | 629 virtual void OnWasHidden(); |
628 virtual void OnWasRestored(bool needs_repainting); | 630 virtual void OnWasRestored(bool needs_repainting); |
629 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; | 631 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; |
630 virtual void OnImeSetComposition( | 632 virtual void OnImeSetComposition( |
631 const string16& text, | 633 const string16& text, |
632 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 634 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
633 int selection_start, | 635 int selection_start, |
634 int selection_end) OVERRIDE; | 636 int selection_end) OVERRIDE; |
635 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE; | 637 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 798 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
797 void OnFileChooserResponse(const std::vector<FilePath>& paths); | 799 void OnFileChooserResponse(const std::vector<FilePath>& paths); |
798 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 800 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
799 void OnFindReplyAck(); | 801 void OnFindReplyAck(); |
800 void OnEnableAccessibility(); | 802 void OnEnableAccessibility(); |
801 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 803 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
802 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 804 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
803 const std::vector<GURL>& links, | 805 const std::vector<GURL>& links, |
804 const std::vector<FilePath>& local_paths, | 806 const std::vector<FilePath>& local_paths, |
805 const FilePath& local_directory_name); | 807 const FilePath& local_directory_name); |
| 808 void OnLockMouseACK(bool succeeded); |
806 void OnMediaPlayerActionAt(const gfx::Point& location, | 809 void OnMediaPlayerActionAt(const gfx::Point& location, |
807 const WebKit::WebMediaPlayerAction& action); | 810 const WebKit::WebMediaPlayerAction& action); |
| 811 void OnMouseLockLost(); |
808 void OnMoveOrResizeStarted(); | 812 void OnMoveOrResizeStarted(); |
809 void OnNavigate(const ViewMsg_Navigate_Params& params); | 813 void OnNavigate(const ViewMsg_Navigate_Params& params); |
810 void OnPaste(); | 814 void OnPaste(); |
811 #if defined(OS_MACOSX) | 815 #if defined(OS_MACOSX) |
812 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); | 816 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); |
813 #endif | 817 #endif |
814 void OnRedo(); | 818 void OnRedo(); |
815 void OnReloadFrame(); | 819 void OnReloadFrame(); |
816 void OnReplace(const string16& text); | 820 void OnReplace(const string16& text); |
817 void OnReservePageIDRange(int size_of_range); | 821 void OnReservePageIDRange(int size_of_range); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 // bunch of stuff, you should probably create a helper class and put your | 1231 // bunch of stuff, you should probably create a helper class and put your |
1228 // data and methods on that to avoid bloating RenderView more. You can use | 1232 // data and methods on that to avoid bloating RenderView more. You can use |
1229 // the Observer interface to filter IPC messages and receive frame change | 1233 // the Observer interface to filter IPC messages and receive frame change |
1230 // notifications. | 1234 // notifications. |
1231 // --------------------------------------------------------------------------- | 1235 // --------------------------------------------------------------------------- |
1232 | 1236 |
1233 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1237 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1234 }; | 1238 }; |
1235 | 1239 |
1236 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1240 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |