| 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 void OnRenderProcessGone(int status, int error_code); | 253 void OnRenderProcessGone(int status, int error_code); |
| 254 void OnUpdateState(const PageState& state); | 254 void OnUpdateState(const PageState& state); |
| 255 void OnUpdateTargetURL(const GURL& url); | 255 void OnUpdateTargetURL(const GURL& url); |
| 256 void OnClose(); | 256 void OnClose(); |
| 257 void OnRequestMove(const gfx::Rect& pos); | 257 void OnRequestMove(const gfx::Rect& pos); |
| 258 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); | 258 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); |
| 259 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); | 259 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 260 void OnPasteFromSelectionClipboard(); | 260 void OnPasteFromSelectionClipboard(); |
| 261 void OnRouteCloseEvent(); | 261 void OnRouteCloseEvent(); |
| 262 void OnTakeFocus(bool reverse); | 262 void OnTakeFocus(bool reverse); |
| 263 void OnFocusedNodeChanged(bool is_editable_node, | |
| 264 const gfx::Rect& node_bounds_in_viewport); | |
| 265 void OnClosePageACK(); | 263 void OnClosePageACK(); |
| 266 void OnDidZoomURL(double zoom_level, const GURL& url); | 264 void OnDidZoomURL(double zoom_level, const GURL& url); |
| 267 void OnFocusedNodeTouched(bool editable); | |
| 268 void OnFocus(); | 265 void OnFocus(); |
| 269 | 266 |
| 270 private: | 267 private: |
| 271 // TODO(nasko): Temporarily friend RenderFrameHostImpl, so we don't duplicate | 268 // TODO(nasko): Temporarily friend RenderFrameHostImpl, so we don't duplicate |
| 272 // utility functions and state needed in both classes, while we move frame | 269 // utility functions and state needed in both classes, while we move frame |
| 273 // specific code away from this class. | 270 // specific code away from this class. |
| 274 friend class RenderFrameHostImpl; | 271 friend class RenderFrameHostImpl; |
| 275 friend class TestRenderViewHost; | 272 friend class TestRenderViewHost; |
| 276 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, BasicRenderFrameHost); | 273 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, BasicRenderFrameHost); |
| 277 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, RoutingIdSane); | 274 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, RoutingIdSane); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // TODO(creis): Move to RenderFrameHost and RenderWidgetHost. | 326 // TODO(creis): Move to RenderFrameHost and RenderWidgetHost. |
| 330 // See http://crbug.com/418265. | 327 // See http://crbug.com/418265. |
| 331 bool is_waiting_for_close_ack_; | 328 bool is_waiting_for_close_ack_; |
| 332 | 329 |
| 333 // True if the render view can be shut down suddenly. | 330 // True if the render view can be shut down suddenly. |
| 334 bool sudden_termination_allowed_; | 331 bool sudden_termination_allowed_; |
| 335 | 332 |
| 336 // The termination status of the last render view that terminated. | 333 // The termination status of the last render view that terminated. |
| 337 base::TerminationStatus render_view_termination_status_; | 334 base::TerminationStatus render_view_termination_status_; |
| 338 | 335 |
| 339 // True if the current focused element is editable. | |
| 340 bool is_focused_element_editable_; | |
| 341 | |
| 342 // This is updated every time UpdateWebkitPreferences is called. That method | 336 // This is updated every time UpdateWebkitPreferences is called. That method |
| 343 // is in turn called when any of the settings change that the WebPreferences | 337 // is in turn called when any of the settings change that the WebPreferences |
| 344 // values depend on. | 338 // values depend on. |
| 345 std::unique_ptr<WebPreferences> web_preferences_; | 339 std::unique_ptr<WebPreferences> web_preferences_; |
| 346 | 340 |
| 347 bool updating_web_preferences_; | 341 bool updating_web_preferences_; |
| 348 | 342 |
| 349 bool render_view_ready_on_process_launch_; | 343 bool render_view_ready_on_process_launch_; |
| 350 | 344 |
| 351 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 345 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 352 | 346 |
| 353 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 347 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 354 }; | 348 }; |
| 355 | 349 |
| 356 } // namespace content | 350 } // namespace content |
| 357 | 351 |
| 358 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 352 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |