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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 | 616 |
615 // True if the render view can be shut down suddenly. | 617 // True if the render view can be shut down suddenly. |
616 bool sudden_termination_allowed_; | 618 bool sudden_termination_allowed_; |
617 | 619 |
618 // The termination status of the last render view that terminated. | 620 // The termination status of the last render view that terminated. |
619 base::TerminationStatus render_view_termination_status_; | 621 base::TerminationStatus render_view_termination_status_; |
620 | 622 |
621 // Set to true if we requested the on screen keyboard to be displayed. | 623 // Set to true if we requested the on screen keyboard to be displayed. |
622 bool virtual_keyboard_requested_; | 624 bool virtual_keyboard_requested_; |
623 | 625 |
624 #if defined(OS_ANDROID) | 626 #if defined(ENABLE_BROWSER_CDMS) |
625 // Manages all the android mediaplayer managers and forwards IPCs to the | 627 // Manages all the media player and CDM managers and forwards IPCs to them. |
626 // managers. | |
627 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; | 628 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; |
628 #endif | 629 #endif |
629 | 630 |
630 // Used to swap out or shutdown this RVH when the unload event is taking too | 631 // Used to swap out or shutdown this RVH when the unload event is taking too |
631 // long to execute, depending on the number of active views in the | 632 // long to execute, depending on the number of active views in the |
632 // SiteInstance. | 633 // SiteInstance. |
633 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 634 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
634 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; | 635 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; |
635 | 636 |
636 // Called after receiving the SwapOutACK when the RVH is in state pending | 637 // Called after receiving the SwapOutACK when the RVH is in state pending |
637 // shutdown. Also called if the unload timer times out. | 638 // shutdown. Also called if the unload timer times out. |
638 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 639 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
639 base::Closure pending_shutdown_on_swap_out_; | 640 base::Closure pending_shutdown_on_swap_out_; |
640 | 641 |
641 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 642 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
642 | 643 |
643 // True if the current focused element is editable. | 644 // True if the current focused element is editable. |
644 bool is_focused_element_editable_; | 645 bool is_focused_element_editable_; |
645 | 646 |
646 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 647 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
647 }; | 648 }; |
648 | 649 |
649 #if defined(COMPILER_MSVC) | 650 #if defined(COMPILER_MSVC) |
650 #pragma warning(pop) | 651 #pragma warning(pop) |
651 #endif | 652 #endif |
652 | 653 |
653 } // namespace content | 654 } // namespace content |
654 | 655 |
655 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 656 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |