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