| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 } | 401 } |
| 402 | 402 |
| 403 // Set the opener to null in the renderer process. | 403 // Set the opener to null in the renderer process. |
| 404 void DisownOpener(); | 404 void DisownOpener(); |
| 405 | 405 |
| 406 // Turn on accessibility testing. The given callback will be run | 406 // Turn on accessibility testing. The given callback will be run |
| 407 // every time an accessibility notification is received from the | 407 // every time an accessibility notification is received from the |
| 408 // renderer process, and the accessibility tree it sent can be | 408 // renderer process, and the accessibility tree it sent can be |
| 409 // retrieved using accessibility_tree_for_testing(). | 409 // retrieved using accessibility_tree_for_testing(). |
| 410 void SetAccessibilityCallbackForTesting( | 410 void SetAccessibilityCallbackForTesting( |
| 411 const base::Callback<void(ui::AXEvent)>& callback); | 411 const base::Callback<void(ui::AXEvent, int)>& callback); |
| 412 | 412 |
| 413 // Only valid if SetAccessibilityCallbackForTesting was called and | 413 // Only valid if SetAccessibilityCallbackForTesting was called and |
| 414 // the callback was run at least once. Returns a snapshot of the | 414 // the callback was run at least once. Returns a snapshot of the |
| 415 // accessibility tree received from the renderer as of the last time | 415 // accessibility tree received from the renderer as of the last time |
| 416 // an accessibility notification was received. | 416 // an accessibility notification was received. |
| 417 const ui::AXTree& ax_tree_for_testing() { | 417 const ui::AXTree& ax_tree_for_testing() { |
| 418 CHECK(ax_tree_.get()); | 418 CHECK(ax_tree_.get()); |
| 419 return *ax_tree_.get(); | 419 return *ax_tree_.get(); |
| 420 } | 420 } |
| 421 | 421 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 bool is_waiting_for_beforeunload_ack_; | 600 bool is_waiting_for_beforeunload_ack_; |
| 601 | 601 |
| 602 // Valid only when is_waiting_for_beforeunload_ack_ or | 602 // Valid only when is_waiting_for_beforeunload_ack_ or |
| 603 // IsWaitingForUnloadACK is true. This tells us if the unload request | 603 // IsWaitingForUnloadACK is true. This tells us if the unload request |
| 604 // is for closing the entire tab ( = false), or only this RenderViewHost in | 604 // is for closing the entire tab ( = false), or only this RenderViewHost in |
| 605 // the case of a cross-site transition ( = true). | 605 // the case of a cross-site transition ( = true). |
| 606 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 606 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
| 607 bool unload_ack_is_for_cross_site_transition_; | 607 bool unload_ack_is_for_cross_site_transition_; |
| 608 | 608 |
| 609 // Accessibility callback for testing. | 609 // Accessibility callback for testing. |
| 610 base::Callback<void(ui::AXEvent)> accessibility_testing_callback_; | 610 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
| 611 | 611 |
| 612 // The most recently received accessibility tree - for testing only. | 612 // The most recently received accessibility tree - for testing only. |
| 613 scoped_ptr<ui::AXTree> ax_tree_; | 613 scoped_ptr<ui::AXTree> ax_tree_; |
| 614 | 614 |
| 615 // True if the render view can be shut down suddenly. | 615 // True if the render view can be shut down suddenly. |
| 616 bool sudden_termination_allowed_; | 616 bool sudden_termination_allowed_; |
| 617 | 617 |
| 618 // The termination status of the last render view that terminated. | 618 // The termination status of the last render view that terminated. |
| 619 base::TerminationStatus render_view_termination_status_; | 619 base::TerminationStatus render_view_termination_status_; |
| 620 | 620 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 645 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 645 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 646 }; | 646 }; |
| 647 | 647 |
| 648 #if defined(COMPILER_MSVC) | 648 #if defined(COMPILER_MSVC) |
| 649 #pragma warning(pop) | 649 #pragma warning(pop) |
| 650 #endif | 650 #endif |
| 651 | 651 |
| 652 } // namespace content | 652 } // namespace content |
| 653 | 653 |
| 654 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 654 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |