| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 // Sets page-level focus in this view and notifies plugins and Blink's | 234 // Sets page-level focus in this view and notifies plugins and Blink's |
| 235 // FocusController. | 235 // FocusController. |
| 236 void SetFocus(bool enable); | 236 void SetFocus(bool enable); |
| 237 | 237 |
| 238 void AttachWebFrameWidget(blink::WebFrameWidget* frame_widget); | 238 void AttachWebFrameWidget(blink::WebFrameWidget* frame_widget); |
| 239 | 239 |
| 240 // Plugin-related functions -------------------------------------------------- | 240 // Plugin-related functions -------------------------------------------------- |
| 241 | 241 |
| 242 #if defined(ENABLE_PLUGINS) | 242 #if defined(ENABLE_PLUGINS) |
| 243 // TODO(ekaramad): This method is only used by TextInputClientObserver. |
| 244 // Ideally, TextInputClientObserver should use RenderFrame/RenderWidget to |
| 245 // obtain the plugin. Come back to this later when implementing IME for Mac |
| 246 // to see if we can remove this API (https://crbug.com/578168). |
| 243 PepperPluginInstanceImpl* GetFocusedPepperPlugin(); | 247 PepperPluginInstanceImpl* GetFocusedPepperPlugin(); |
| 244 #endif // ENABLE_PLUGINS | 248 #endif // ENABLE_PLUGINS |
| 245 | 249 |
| 246 void TransferActiveWheelFlingAnimation( | 250 void TransferActiveWheelFlingAnimation( |
| 247 const blink::WebActiveWheelFlingParameters& params); | 251 const blink::WebActiveWheelFlingParameters& params); |
| 248 | 252 |
| 249 // Starts a timer to send an UpdateState message on behalf of |frame|, if the | 253 // Starts a timer to send an UpdateState message on behalf of |frame|, if the |
| 250 // timer isn't already running. This allows multiple state changing events to | 254 // timer isn't already running. This allows multiple state changing events to |
| 251 // be coalesced into one update. | 255 // be coalesced into one update. |
| 252 void StartNavStateSyncTimerIfNecessary(RenderFrameImpl* frame); | 256 void StartNavStateSyncTimerIfNecessary(RenderFrameImpl* frame); |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 // appropriate section, add it there. If not, there are some random functions | 440 // appropriate section, add it there. If not, there are some random functions |
| 437 // nearer to the top you can add it to. | 441 // nearer to the top you can add it to. |
| 438 | 442 |
| 439 protected: | 443 protected: |
| 440 // RenderWidget overrides: | 444 // RenderWidget overrides: |
| 441 void CloseForFrame() override; | 445 void CloseForFrame() override; |
| 442 void Close() override; | 446 void Close() override; |
| 443 void OnResize(const ResizeParams& params) override; | 447 void OnResize(const ResizeParams& params) override; |
| 444 void OnSetFocus(bool enable) override; | 448 void OnSetFocus(bool enable) override; |
| 445 GURL GetURLForGraphicsContext3D() override; | 449 GURL GetURLForGraphicsContext3D() override; |
| 446 void OnImeSetComposition( | |
| 447 const base::string16& text, | |
| 448 const std::vector<blink::WebCompositionUnderline>& underlines, | |
| 449 const gfx::Range& replacement_range, | |
| 450 int selection_start, | |
| 451 int selection_end) override; | |
| 452 void OnImeConfirmComposition(const base::string16& text, | |
| 453 const gfx::Range& replacement_range, | |
| 454 bool keep_selection) override; | |
| 455 void OnOrientationChange() override; | 450 void OnOrientationChange() override; |
| 456 ui::TextInputType GetTextInputType() override; | |
| 457 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; | |
| 458 void GetCompositionCharacterBounds( | |
| 459 std::vector<gfx::Rect>* character_bounds_in_window) override; | |
| 460 void GetCompositionRange(gfx::Range* range) override; | |
| 461 bool CanComposeInline() override; | |
| 462 void DidCommitCompositorFrame() override; | 451 void DidCommitCompositorFrame() override; |
| 463 void DidCompletePageScaleAnimation() override; | 452 void DidCompletePageScaleAnimation() override; |
| 464 void OnDeviceScaleFactorChanged() override; | 453 void OnDeviceScaleFactorChanged() override; |
| 465 void ResizeWebWidget() override; | 454 void ResizeWebWidget() override; |
| 466 | 455 |
| 467 RenderViewImpl(CompositorDependencies* compositor_deps, | 456 RenderViewImpl(CompositorDependencies* compositor_deps, |
| 468 const ViewMsg_New_Params& params); | 457 const ViewMsg_New_Params& params); |
| 469 | 458 |
| 470 void Initialize(const ViewMsg_New_Params& params, | 459 void Initialize(const ViewMsg_New_Params& params, |
| 471 bool was_created_by_renderer); | 460 bool was_created_by_renderer); |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 // use the Observer interface to filter IPC messages and receive frame change | 927 // use the Observer interface to filter IPC messages and receive frame change |
| 939 // notifications. | 928 // notifications. |
| 940 // --------------------------------------------------------------------------- | 929 // --------------------------------------------------------------------------- |
| 941 | 930 |
| 942 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 931 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 943 }; | 932 }; |
| 944 | 933 |
| 945 } // namespace content | 934 } // namespace content |
| 946 | 935 |
| 947 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 936 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |