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_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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 726 const WebKit::WebString& message) OVERRIDE; | 726 const WebKit::WebString& message) OVERRIDE; |
| 727 virtual void LoadURLExternally( | 727 virtual void LoadURLExternally( |
| 728 WebKit::WebFrame* frame, | 728 WebKit::WebFrame* frame, |
| 729 const WebKit::WebURLRequest& request, | 729 const WebKit::WebURLRequest& request, |
| 730 WebKit::WebNavigationPolicy policy) OVERRIDE; | 730 WebKit::WebNavigationPolicy policy) OVERRIDE; |
| 731 virtual void Repaint(const gfx::Size& size) OVERRIDE; | 731 virtual void Repaint(const gfx::Size& size) OVERRIDE; |
| 732 virtual void SetEditCommandForNextKeyEvent(const std::string& name, | 732 virtual void SetEditCommandForNextKeyEvent(const std::string& name, |
| 733 const std::string& value) OVERRIDE; | 733 const std::string& value) OVERRIDE; |
| 734 virtual void ClearEditCommands() OVERRIDE; | 734 virtual void ClearEditCommands() OVERRIDE; |
| 735 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const OVERRIDE; | 735 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const OVERRIDE; |
| 736 #if defined(OS_ANDROID) | |
| 737 virtual void SetCapturePictureCallback(const CapturePictureCallback& callback) | |
| 738 OVERRIDE; | |
|
Jói
2013/01/11 18:40:08
nit: Suggest wrapping at the ( so that OVERRIDE is
Leandro Graciá Gil
2013/01/15 20:46:11
Removing method from RenderView.
| |
| 739 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; | |
| 740 #endif | |
| 736 | 741 |
| 737 // webkit_glue::WebPluginPageDelegate implementation ------------------------- | 742 // webkit_glue::WebPluginPageDelegate implementation ------------------------- |
| 738 | 743 |
| 739 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( | 744 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( |
| 740 const FilePath& file_path, | 745 const FilePath& file_path, |
| 741 const std::string& mime_type) OVERRIDE; | 746 const std::string& mime_type) OVERRIDE; |
| 742 virtual WebKit::WebPlugin* CreatePluginReplacement( | 747 virtual WebKit::WebPlugin* CreatePluginReplacement( |
| 743 const FilePath& file_path) OVERRIDE; | 748 const FilePath& file_path) OVERRIDE; |
| 744 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; | 749 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; |
| 745 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; | 750 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 800 int selection_end) OVERRIDE; | 805 int selection_end) OVERRIDE; |
| 801 virtual void OnImeConfirmComposition( | 806 virtual void OnImeConfirmComposition( |
| 802 const string16& text, const ui::Range& replacement_range) OVERRIDE; | 807 const string16& text, const ui::Range& replacement_range) OVERRIDE; |
| 803 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; | 808 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; |
| 804 virtual ui::TextInputType GetTextInputType() OVERRIDE; | 809 virtual ui::TextInputType GetTextInputType() OVERRIDE; |
| 805 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) OVERRIDE; | 810 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) OVERRIDE; |
| 806 virtual void GetCompositionCharacterBounds( | 811 virtual void GetCompositionCharacterBounds( |
| 807 std::vector<gfx::Rect>* character_bounds) OVERRIDE; | 812 std::vector<gfx::Rect>* character_bounds) OVERRIDE; |
| 808 virtual bool CanComposeInline() OVERRIDE; | 813 virtual bool CanComposeInline() OVERRIDE; |
| 809 virtual bool WebWidgetHandlesCompositorScheduling() const OVERRIDE; | 814 virtual bool WebWidgetHandlesCompositorScheduling() const OVERRIDE; |
| 815 virtual void didBecomeReadyForAdditionalInput() OVERRIDE; | |
| 810 | 816 |
| 811 protected: | 817 protected: |
| 812 RenderViewImpl(RenderViewImplParams* params); | 818 RenderViewImpl(RenderViewImplParams* params); |
| 813 | 819 |
| 814 // Do not delete directly. This class is reference counted. | 820 // Do not delete directly. This class is reference counted. |
| 815 virtual ~RenderViewImpl(); | 821 virtual ~RenderViewImpl(); |
| 816 | 822 |
| 817 private: | 823 private: |
| 818 // For unit tests. | 824 // For unit tests. |
| 819 friend class ExternalPopupMenuTest; | 825 friend class ExternalPopupMenuTest; |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1463 // Holds the message used to return find results to the browser during | 1469 // Holds the message used to return find results to the browser during |
| 1464 // synchronous find-in-page requests. Only non-null during these requests. | 1470 // synchronous find-in-page requests. Only non-null during these requests. |
| 1465 scoped_ptr<IPC::Message> synchronous_find_reply_message_; | 1471 scoped_ptr<IPC::Message> synchronous_find_reply_message_; |
| 1466 | 1472 |
| 1467 // The active find-in-page match ordinal during synchronous requests. | 1473 // The active find-in-page match ordinal during synchronous requests. |
| 1468 // Needed to be remembered across WebKit callbacks. | 1474 // Needed to be remembered across WebKit callbacks. |
| 1469 int synchronous_find_active_match_ordinal_; | 1475 int synchronous_find_active_match_ordinal_; |
| 1470 | 1476 |
| 1471 // A date/time picker object for date and time related input elements. | 1477 // A date/time picker object for date and time related input elements. |
| 1472 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; | 1478 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; |
| 1479 | |
| 1480 // Callback used by Android WebView to receive new picture piles. | |
| 1481 CapturePictureCallback capture_picture_callback_; | |
| 1473 #endif | 1482 #endif |
| 1474 | 1483 |
| 1475 // Misc ---------------------------------------------------------------------- | 1484 // Misc ---------------------------------------------------------------------- |
| 1476 | 1485 |
| 1477 // The current and pending file chooser completion objects. If the queue is | 1486 // The current and pending file chooser completion objects. If the queue is |
| 1478 // nonempty, the first item represents the currently running file chooser | 1487 // nonempty, the first item represents the currently running file chooser |
| 1479 // callback, and the remaining elements are the other file chooser completion | 1488 // callback, and the remaining elements are the other file chooser completion |
| 1480 // still waiting to be run (in order). | 1489 // still waiting to be run (in order). |
| 1481 struct PendingFileChooser; | 1490 struct PendingFileChooser; |
| 1482 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1491 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1591 // use the Observer interface to filter IPC messages and receive frame change | 1600 // use the Observer interface to filter IPC messages and receive frame change |
| 1592 // notifications. | 1601 // notifications. |
| 1593 // --------------------------------------------------------------------------- | 1602 // --------------------------------------------------------------------------- |
| 1594 | 1603 |
| 1595 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1604 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1596 }; | 1605 }; |
| 1597 | 1606 |
| 1598 } // namespace content | 1607 } // namespace content |
| 1599 | 1608 |
| 1600 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1609 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |