OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
666 // Plugins start assuming the content has focus (so that they work in | 666 // Plugins start assuming the content has focus (so that they work in |
667 // environments where RenderView isn't hosting them), so we always have to | 667 // environments where RenderView isn't hosting them), so we always have to |
668 // set the initial state. See webplugin_delegate_impl.h for details. | 668 // set the initial state. See webplugin_delegate_impl.h for details. |
669 delegate->SetContentAreaFocus(has_focus()); | 669 delegate->SetContentAreaFocus(has_focus()); |
670 } | 670 } |
671 | 671 |
672 void RenderView::UnregisterPluginDelegate(WebPluginDelegateProxy* delegate) { | 672 void RenderView::UnregisterPluginDelegate(WebPluginDelegateProxy* delegate) { |
673 plugin_delegates_.erase(delegate); | 673 plugin_delegates_.erase(delegate); |
674 } | 674 } |
675 | 675 |
676 void RenderView::ShowCompositorHostWindow(bool show) { | |
677 Send(new ViewHostMsg_ShowCompositorHostWindow(routing_id(), show)); | |
jonathan.backer
2010/11/19 15:01:31
Need to #if defined(OS_WIN) this so that it builds
nduca
2010/11/19 18:52:37
Done.
| |
678 } | |
679 | |
676 void RenderView::Init(gfx::NativeViewId parent_hwnd, | 680 void RenderView::Init(gfx::NativeViewId parent_hwnd, |
677 int32 opener_id, | 681 int32 opener_id, |
678 const RendererPreferences& renderer_prefs, | 682 const RendererPreferences& renderer_prefs, |
679 SharedRenderViewCounter* counter, | 683 SharedRenderViewCounter* counter, |
680 int32 routing_id, | 684 int32 routing_id, |
681 const string16& frame_name) { | 685 const string16& frame_name) { |
682 DCHECK(!webview()); | 686 DCHECK(!webview()); |
683 | 687 |
684 if (opener_id != MSG_ROUTING_NONE) | 688 if (opener_id != MSG_ROUTING_NONE) |
685 opener_id_ = opener_id; | 689 opener_id_ = opener_id; |
(...skipping 4801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5487 IPC::PlatformFileForTransitToPlatformFile(file_for_transit), | 5491 IPC::PlatformFileForTransitToPlatformFile(file_for_transit), |
5488 message_id); | 5492 message_id); |
5489 } | 5493 } |
5490 | 5494 |
5491 #if defined(OS_MACOSX) | 5495 #if defined(OS_MACOSX) |
5492 void RenderView::OnSelectPopupMenuItem(int selected_index) { | 5496 void RenderView::OnSelectPopupMenuItem(int selected_index) { |
5493 external_popup_menu_->DidSelectItem(selected_index); | 5497 external_popup_menu_->DidSelectItem(selected_index); |
5494 external_popup_menu_.reset(); | 5498 external_popup_menu_.reset(); |
5495 } | 5499 } |
5496 #endif | 5500 #endif |
OLD | NEW |