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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 double page_zoom_level() { | 231 double page_zoom_level() { |
232 return page_zoom_level_; | 232 return page_zoom_level_; |
233 } | 233 } |
234 | 234 |
235 // Sets page-level focus in this view and notifies plugins and Blink's | 235 // Sets page-level focus in this view and notifies plugins and Blink's |
236 // FocusController. | 236 // FocusController. |
237 void SetFocus(bool enable); | 237 void SetFocus(bool enable); |
238 | 238 |
239 void AttachWebFrameWidget(blink::WebFrameWidget* frame_widget); | 239 void AttachWebFrameWidget(blink::WebFrameWidget* frame_widget); |
240 | 240 |
241 // Plugin-related functions -------------------------------------------------- | |
242 | |
243 #if defined(ENABLE_PLUGINS) | |
244 // TODO(ekaramad): This method is only used by TextInputClientObserver. | |
245 // Ideally, TextInputClientObserver should use RenderFrame/RenderWidget to | |
246 // obtain the plugin. Come back to this later when implementing IME for Mac | |
247 // to see if we can remove this API (https://crbug.com/578168). | |
248 PepperPluginInstanceImpl* GetFocusedPepperPlugin(); | |
249 #endif // ENABLE_PLUGINS | |
250 | |
251 void TransferActiveWheelFlingAnimation( | 241 void TransferActiveWheelFlingAnimation( |
252 const blink::WebActiveWheelFlingParameters& params); | 242 const blink::WebActiveWheelFlingParameters& params); |
253 | 243 |
254 // Starts a timer to send an UpdateState message on behalf of |frame|, if the | 244 // Starts a timer to send an UpdateState message on behalf of |frame|, if the |
255 // timer isn't already running. This allows multiple state changing events to | 245 // timer isn't already running. This allows multiple state changing events to |
256 // be coalesced into one update. | 246 // be coalesced into one update. |
257 void StartNavStateSyncTimerIfNecessary(RenderFrameImpl* frame); | 247 void StartNavStateSyncTimerIfNecessary(RenderFrameImpl* frame); |
258 | 248 |
259 // Synchronously sends the current navigation state to the browser. | 249 // Synchronously sends the current navigation state to the browser. |
260 void SendUpdateState(); | 250 void SendUpdateState(); |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 // use the Observer interface to filter IPC messages and receive frame change | 905 // use the Observer interface to filter IPC messages and receive frame change |
916 // notifications. | 906 // notifications. |
917 // --------------------------------------------------------------------------- | 907 // --------------------------------------------------------------------------- |
918 | 908 |
919 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 909 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
920 }; | 910 }; |
921 | 911 |
922 } // namespace content | 912 } // namespace content |
923 | 913 |
924 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 914 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |