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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 384 |
385 // Creates a full screen RenderWidget. | 385 // Creates a full screen RenderWidget. |
386 void CreateNewFullscreenWidget(int route_id); | 386 void CreateNewFullscreenWidget(int route_id); |
387 | 387 |
388 #if defined(OS_MACOSX) | 388 #if defined(OS_MACOSX) |
389 // Select popup menu related methods (for external popup menus). | 389 // Select popup menu related methods (for external popup menus). |
390 void DidSelectPopupMenuItem(int selected_index); | 390 void DidSelectPopupMenuItem(int selected_index); |
391 void DidCancelPopupMenu(); | 391 void DidCancelPopupMenu(); |
392 #endif | 392 #endif |
393 | 393 |
394 #if defined(OS_ANDROID) | 394 #if defined(ENABLE_BROWSER_CDMS) |
395 MediaWebContentsObserver* media_web_contents_observer() { | 395 MediaWebContentsObserver* media_web_contents_observer() { |
396 return media_web_contents_observer_.get(); | 396 return media_web_contents_observer_.get(); |
397 } | 397 } |
| 398 #endif |
398 | 399 |
| 400 #if defined(OS_ANDROID) |
399 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 401 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
400 void DidCancelPopupMenu(); | 402 void DidCancelPopupMenu(); |
401 #endif | 403 #endif |
402 | 404 |
403 int main_frame_routing_id() const { | 405 int main_frame_routing_id() const { |
404 return main_frame_routing_id_; | 406 return main_frame_routing_id_; |
405 } | 407 } |
406 | 408 |
407 // Set the opener to null in the renderer process. | 409 // Set the opener to null in the renderer process. |
408 void DisownOpener(); | 410 void DisownOpener(); |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 | 615 |
614 // True if the render view can be shut down suddenly. | 616 // True if the render view can be shut down suddenly. |
615 bool sudden_termination_allowed_; | 617 bool sudden_termination_allowed_; |
616 | 618 |
617 // The termination status of the last render view that terminated. | 619 // The termination status of the last render view that terminated. |
618 base::TerminationStatus render_view_termination_status_; | 620 base::TerminationStatus render_view_termination_status_; |
619 | 621 |
620 // Set to true if we requested the on screen keyboard to be displayed. | 622 // Set to true if we requested the on screen keyboard to be displayed. |
621 bool virtual_keyboard_requested_; | 623 bool virtual_keyboard_requested_; |
622 | 624 |
623 #if defined(OS_ANDROID) | 625 #if defined(ENABLE_BROWSER_CDMS) |
624 // Manages all the android mediaplayer managers and forwards IPCs to the | 626 // Manages all the media player and CDM managers and forwards IPCs to them. |
625 // managers. | |
626 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; | 627 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; |
627 #endif | 628 #endif |
628 | 629 |
629 // Used to swap out or shutdown this RVH when the unload event is taking too | 630 // Used to swap out or shutdown this RVH when the unload event is taking too |
630 // long to execute, depending on the number of active views in the | 631 // long to execute, depending on the number of active views in the |
631 // SiteInstance. | 632 // SiteInstance. |
632 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 633 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
633 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; | 634 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; |
634 | 635 |
635 // Called after receiving the SwapOutACK when the RVH is in state pending | 636 // Called after receiving the SwapOutACK when the RVH is in state pending |
636 // shutdown. Also called if the unload timer times out. | 637 // shutdown. Also called if the unload timer times out. |
637 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 638 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
638 base::Closure pending_shutdown_on_swap_out_; | 639 base::Closure pending_shutdown_on_swap_out_; |
639 | 640 |
640 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 641 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
641 | 642 |
642 // True if the current focused element is editable. | 643 // True if the current focused element is editable. |
643 bool is_focused_element_editable_; | 644 bool is_focused_element_editable_; |
644 | 645 |
645 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 646 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
646 }; | 647 }; |
647 | 648 |
648 #if defined(COMPILER_MSVC) | 649 #if defined(COMPILER_MSVC) |
649 #pragma warning(pop) | 650 #pragma warning(pop) |
650 #endif | 651 #endif |
651 | 652 |
652 } // namespace content | 653 } // namespace content |
653 | 654 |
654 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 655 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |