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