| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2112 | 2112 |
| 2113 WebExternalPopupMenu* RenderView::createExternalPopupMenu( | 2113 WebExternalPopupMenu* RenderView::createExternalPopupMenu( |
| 2114 const WebPopupMenuInfo& popup_menu_info, | 2114 const WebPopupMenuInfo& popup_menu_info, |
| 2115 WebExternalPopupMenuClient* popup_menu_client) { | 2115 WebExternalPopupMenuClient* popup_menu_client) { |
| 2116 DCHECK(!external_popup_menu_.get()); | 2116 DCHECK(!external_popup_menu_.get()); |
| 2117 external_popup_menu_.reset( | 2117 external_popup_menu_.reset( |
| 2118 new ExternalPopupMenu(this, popup_menu_info, popup_menu_client)); | 2118 new ExternalPopupMenu(this, popup_menu_info, popup_menu_client)); |
| 2119 return external_popup_menu_.get(); | 2119 return external_popup_menu_.get(); |
| 2120 } | 2120 } |
| 2121 | 2121 |
| 2122 WebWidget* RenderView::createFullscreenWindow(WebKit::WebPopupType popup_type) { | |
| 2123 RenderWidget* widget = RenderWidgetFullscreen::Create(routing_id_, | |
| 2124 render_thread_, | |
| 2125 popup_type); | |
| 2126 return widget->webwidget(); | |
| 2127 } | |
| 2128 | |
| 2129 webkit::ppapi::FullscreenContainer* | 2122 webkit::ppapi::FullscreenContainer* |
| 2130 RenderView::CreatePepperFullscreenContainer( | 2123 RenderView::CreatePepperFullscreenContainer( |
| 2131 webkit::ppapi::PluginInstance* plugin) { | 2124 webkit::ppapi::PluginInstance* plugin) { |
| 2132 RenderWidgetFullscreenPepper* widget = | 2125 RenderWidgetFullscreenPepper* widget = |
| 2133 RenderWidgetFullscreenPepper::Create(routing_id_, render_thread_, plugin); | 2126 RenderWidgetFullscreenPepper::Create(routing_id_, render_thread_, plugin); |
| 2134 widget->show(WebKit::WebNavigationPolicyIgnore); | 2127 widget->show(WebKit::WebNavigationPolicyIgnore); |
| 2135 return widget; | 2128 return widget; |
| 2136 } | 2129 } |
| 2137 | 2130 |
| 2138 WebStorageNamespace* RenderView::createSessionStorageNamespace(unsigned quota) { | 2131 WebStorageNamespace* RenderView::createSessionStorageNamespace(unsigned quota) { |
| (...skipping 3634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5773 } | 5766 } |
| 5774 } | 5767 } |
| 5775 | 5768 |
| 5776 void RenderView::OnContextMenuClosed( | 5769 void RenderView::OnContextMenuClosed( |
| 5777 const webkit_glue::CustomContextMenuContext& custom_context) { | 5770 const webkit_glue::CustomContextMenuContext& custom_context) { |
| 5778 if (custom_context.is_pepper_menu) | 5771 if (custom_context.is_pepper_menu) |
| 5779 pepper_delegate_.OnContextMenuClosed(custom_context); | 5772 pepper_delegate_.OnContextMenuClosed(custom_context); |
| 5780 else | 5773 else |
| 5781 context_menu_node_.reset(); | 5774 context_menu_node_.reset(); |
| 5782 } | 5775 } |
| OLD | NEW |