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 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/pickle.h" | 10 #include "base/pickle.h" |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 params.item_height, | 860 params.item_height, |
861 params.item_font_size, | 861 params.item_font_size, |
862 params.selected_item, | 862 params.selected_item, |
863 params.popup_items, | 863 params.popup_items, |
864 params.right_aligned, | 864 params.right_aligned, |
865 params.allow_multiple_selection); | 865 params.allow_multiple_selection); |
866 } | 866 } |
867 #endif | 867 #endif |
868 | 868 |
869 void BrowserPluginGuest::OnShowWidget(int route_id, | 869 void BrowserPluginGuest::OnShowWidget(int route_id, |
870 const gfx::Rect& initial_pos) { | 870 const gfx::Rect& initial_rect) { |
871 GetWebContents()->ShowCreatedWidget(route_id, initial_pos); | 871 GetWebContents()->ShowCreatedWidget(route_id, initial_rect); |
872 } | 872 } |
873 | 873 |
874 void BrowserPluginGuest::OnTakeFocus(bool reverse) { | 874 void BrowserPluginGuest::OnTakeFocus(bool reverse) { |
875 SendMessageToEmbedder( | 875 SendMessageToEmbedder( |
876 new BrowserPluginMsg_AdvanceFocus(browser_plugin_instance_id(), reverse)); | 876 new BrowserPluginMsg_AdvanceFocus(browser_plugin_instance_id(), reverse)); |
877 } | 877 } |
878 | 878 |
879 void BrowserPluginGuest::OnTextInputTypeChanged(ui::TextInputType type, | 879 void BrowserPluginGuest::OnTextInputTypeChanged(ui::TextInputType type, |
880 ui::TextInputMode input_mode, | 880 ui::TextInputMode input_mode, |
881 bool can_compose_inline, | 881 bool can_compose_inline, |
(...skipping 18 matching lines...) Expand all Loading... |
900 void BrowserPluginGuest::OnImeCompositionRangeChanged( | 900 void BrowserPluginGuest::OnImeCompositionRangeChanged( |
901 const gfx::Range& range, | 901 const gfx::Range& range, |
902 const std::vector<gfx::Rect>& character_bounds) { | 902 const std::vector<gfx::Rect>& character_bounds) { |
903 static_cast<RenderWidgetHostViewBase*>( | 903 static_cast<RenderWidgetHostViewBase*>( |
904 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( | 904 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( |
905 range, character_bounds); | 905 range, character_bounds); |
906 } | 906 } |
907 #endif | 907 #endif |
908 | 908 |
909 } // namespace content | 909 } // namespace content |
OLD | NEW |