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_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // plugin found that match the URL given (one for each item in | 281 // plugin found that match the URL given (one for each item in |
282 // |info|). | 282 // |info|). |
283 CONTENT_EXPORT bool GetPluginInfo(const GURL& url, | 283 CONTENT_EXPORT bool GetPluginInfo(const GURL& url, |
284 const GURL& page_url, | 284 const GURL& page_url, |
285 const std::string& mime_type, | 285 const std::string& mime_type, |
286 webkit::WebPluginInfo* plugin_info, | 286 webkit::WebPluginInfo* plugin_info, |
287 std::string* actual_mime_type); | 287 std::string* actual_mime_type); |
288 | 288 |
289 // IPC::Channel::Listener implementation ------------------------------------- | 289 // IPC::Channel::Listener implementation ------------------------------------- |
290 | 290 |
291 virtual bool OnMessageReceived(const IPC::Message& msg); | 291 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
292 | 292 |
293 // WebKit::WebWidgetClient implementation ------------------------------------ | 293 // WebKit::WebWidgetClient implementation ------------------------------------ |
294 | 294 |
295 // Most methods are handled by RenderWidget. | 295 // Most methods are handled by RenderWidget. |
296 virtual void didFocus(); | 296 virtual void didFocus(); |
297 virtual void didBlur(); | 297 virtual void didBlur(); |
298 virtual void show(WebKit::WebNavigationPolicy policy); | 298 virtual void show(WebKit::WebNavigationPolicy policy); |
299 virtual void runModal(); | 299 virtual void runModal(); |
300 virtual bool enterFullScreen(); | 300 virtual bool enterFullScreen(); |
301 virtual void exitFullScreen(); | 301 virtual void exitFullScreen(); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 const WebKit::WebString& message) OVERRIDE; | 571 const WebKit::WebString& message) OVERRIDE; |
572 virtual void LoadURLExternally( | 572 virtual void LoadURLExternally( |
573 WebKit::WebFrame* frame, | 573 WebKit::WebFrame* frame, |
574 const WebKit::WebURLRequest& request, | 574 const WebKit::WebURLRequest& request, |
575 WebKit::WebNavigationPolicy policy) OVERRIDE; | 575 WebKit::WebNavigationPolicy policy) OVERRIDE; |
576 | 576 |
577 // webkit_glue::WebPluginPageDelegate implementation ------------------------- | 577 // webkit_glue::WebPluginPageDelegate implementation ------------------------- |
578 | 578 |
579 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( | 579 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( |
580 const FilePath& file_path, | 580 const FilePath& file_path, |
581 const std::string& mime_type); | 581 const std::string& mime_type) OVERRIDE; |
582 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle); | 582 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; |
583 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); | 583 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; |
584 virtual void DidMovePlugin(const webkit::npapi::WebPluginGeometry& move); | 584 virtual void DidMovePlugin( |
585 virtual void DidStartLoadingForPlugin(); | 585 const webkit::npapi::WebPluginGeometry& move) OVERRIDE; |
586 virtual void DidStopLoadingForPlugin(); | 586 virtual void DidStartLoadingForPlugin() OVERRIDE; |
587 virtual WebKit::WebCookieJar* GetCookieJar(); | 587 virtual void DidStopLoadingForPlugin() OVERRIDE; |
| 588 virtual WebKit::WebCookieJar* GetCookieJar() OVERRIDE; |
588 | 589 |
589 // webkit_media::WebMediaPlayerDelegate implementation ----------------------- | 590 // webkit_media::WebMediaPlayerDelegate implementation ----------------------- |
590 | 591 |
591 virtual void DidPlay(webkit_media::WebMediaPlayerImpl* player) OVERRIDE; | 592 virtual void DidPlay(webkit_media::WebMediaPlayerImpl* player) OVERRIDE; |
592 virtual void DidPause(webkit_media::WebMediaPlayerImpl* player) OVERRIDE; | 593 virtual void DidPause(webkit_media::WebMediaPlayerImpl* player) OVERRIDE; |
593 virtual void PlayerGone(webkit_media::WebMediaPlayerImpl* player) OVERRIDE; | 594 virtual void PlayerGone(webkit_media::WebMediaPlayerImpl* player) OVERRIDE; |
594 | 595 |
595 // Please do not add your stuff randomly to the end here. If there is an | 596 // Please do not add your stuff randomly to the end here. If there is an |
596 // appropriate section, add it there. If not, there are some random functions | 597 // appropriate section, add it there. If not, there are some random functions |
597 // nearer to the top you can add it to. | 598 // nearer to the top you can add it to. |
598 virtual void DidFlushPaint(); | 599 virtual void DidFlushPaint() OVERRIDE; |
599 | 600 |
600 // Cannot use std::set unfortunately since linked_ptr<> does not support | 601 // Cannot use std::set unfortunately since linked_ptr<> does not support |
601 // operator<. | 602 // operator<. |
602 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> > | 603 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> > |
603 ImageResourceFetcherList; | 604 ImageResourceFetcherList; |
604 | 605 |
605 protected: | 606 protected: |
606 // RenderWidget overrides: | 607 // RenderWidget overrides: |
607 virtual void Close(); | 608 virtual void Close() OVERRIDE; |
608 virtual void OnResize(const gfx::Size& new_size, | 609 virtual void OnResize(const gfx::Size& new_size, |
609 const gfx::Rect& resizer_rect, | 610 const gfx::Rect& resizer_rect, |
610 bool is_fullscreen); | 611 bool is_fullscreen) OVERRIDE; |
611 virtual void DidInitiatePaint(); | 612 virtual void DidInitiatePaint() OVERRIDE; |
612 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 613 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
613 const gfx::Rect& paint_bounds, | 614 const gfx::Rect& paint_bounds, |
614 TransportDIB** dib, | 615 TransportDIB** dib, |
615 gfx::Rect* location, | 616 gfx::Rect* location, |
616 gfx::Rect* clip); | 617 gfx::Rect* clip) OVERRIDE; |
617 virtual gfx::Point GetScrollOffset(); | 618 virtual gfx::Point GetScrollOffset() OVERRIDE; |
618 virtual void DidHandleKeyEvent(); | 619 virtual void DidHandleKeyEvent() OVERRIDE; |
619 virtual bool WillHandleMouseEvent( | 620 virtual bool WillHandleMouseEvent( |
620 const WebKit::WebMouseEvent& event) OVERRIDE; | 621 const WebKit::WebMouseEvent& event) OVERRIDE; |
621 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); | 622 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) OVERRIDE; |
622 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event); | 623 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) OVERRIDE; |
623 virtual void OnSetFocus(bool enable); | 624 virtual void OnSetFocus(bool enable) OVERRIDE; |
624 virtual void OnWasHidden(); | 625 virtual void OnWasHidden() OVERRIDE; |
625 virtual void OnWasRestored(bool needs_repainting); | 626 virtual void OnWasRestored(bool needs_repainting) OVERRIDE; |
626 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; | 627 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; |
627 virtual void OnImeSetComposition( | 628 virtual void OnImeSetComposition( |
628 const string16& text, | 629 const string16& text, |
629 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 630 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
630 int selection_start, | 631 int selection_start, |
631 int selection_end) OVERRIDE; | 632 int selection_end) OVERRIDE; |
632 virtual void OnImeConfirmComposition( | 633 virtual void OnImeConfirmComposition( |
633 const string16& text, const ui::Range& replacement_range) OVERRIDE; | 634 const string16& text, const ui::Range& replacement_range) OVERRIDE; |
634 virtual ui::TextInputType GetTextInputType() OVERRIDE; | 635 virtual ui::TextInputType GetTextInputType() OVERRIDE; |
635 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) OVERRIDE; | 636 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) OVERRIDE; |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 // bunch of stuff, you should probably create a helper class and put your | 1218 // bunch of stuff, you should probably create a helper class and put your |
1218 // data and methods on that to avoid bloating RenderView more. You can | 1219 // data and methods on that to avoid bloating RenderView more. You can |
1219 // use the Observer interface to filter IPC messages and receive frame change | 1220 // use the Observer interface to filter IPC messages and receive frame change |
1220 // notifications. | 1221 // notifications. |
1221 // --------------------------------------------------------------------------- | 1222 // --------------------------------------------------------------------------- |
1222 | 1223 |
1223 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1224 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1224 }; | 1225 }; |
1225 | 1226 |
1226 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1227 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |