Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 2029423003: OOPIF IME: Renderer Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed an Error Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
Charlie Reis 2016/07/12 00:00:12 nit: s/MAC/Mac/
EhsanK 2016/07/12 15:13:24 Done.
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // appropriate section, add it there. If not, there are some random functions 442 // appropriate section, add it there. If not, there are some random functions
439 // nearer to the top you can add it to. 443 // nearer to the top you can add it to.
440 444
441 protected: 445 protected:
442 // RenderWidget overrides: 446 // RenderWidget overrides:
443 void CloseForFrame() override; 447 void CloseForFrame() override;
444 void Close() override; 448 void Close() override;
445 void OnResize(const ResizeParams& params) override; 449 void OnResize(const ResizeParams& params) override;
446 void OnSetFocus(bool enable) override; 450 void OnSetFocus(bool enable) override;
447 GURL GetURLForGraphicsContext3D() override; 451 GURL GetURLForGraphicsContext3D() override;
448 void OnImeSetComposition(
449 const base::string16& text,
450 const std::vector<blink::WebCompositionUnderline>& underlines,
451 const gfx::Range& replacement_range,
452 int selection_start,
453 int selection_end) override;
454 void OnImeConfirmComposition(const base::string16& text,
455 const gfx::Range& replacement_range,
456 bool keep_selection) override;
457 void OnOrientationChange() override; 452 void OnOrientationChange() override;
458 ui::TextInputType GetTextInputType() override;
459 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override;
460 void GetCompositionCharacterBounds(
461 std::vector<gfx::Rect>* character_bounds_in_window) override;
462 void GetCompositionRange(gfx::Range* range) override;
463 bool CanComposeInline() override;
464 void DidCommitCompositorFrame() override; 453 void DidCommitCompositorFrame() override;
465 void DidCompletePageScaleAnimation() override; 454 void DidCompletePageScaleAnimation() override;
466 void OnDeviceScaleFactorChanged() override; 455 void OnDeviceScaleFactorChanged() override;
467 void ResizeWebWidget() override; 456 void ResizeWebWidget() override;
468 457
469 RenderViewImpl(CompositorDependencies* compositor_deps, 458 RenderViewImpl(CompositorDependencies* compositor_deps,
470 const ViewMsg_New_Params& params); 459 const ViewMsg_New_Params& params);
471 460
472 void Initialize(const ViewMsg_New_Params& params, 461 void Initialize(const ViewMsg_New_Params& params,
473 bool was_created_by_renderer); 462 bool was_created_by_renderer);
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 // use the Observer interface to filter IPC messages and receive frame change 929 // use the Observer interface to filter IPC messages and receive frame change
941 // notifications. 930 // notifications.
942 // --------------------------------------------------------------------------- 931 // ---------------------------------------------------------------------------
943 932
944 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 933 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
945 }; 934 };
946 935
947 } // namespace content 936 } // namespace content
948 937
949 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 938 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698