Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: chrome/renderer/render_widget.cc

Issue 181014: Eliminate remaining WebCore dependencies from webplugin_impl.cc... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_widget.h" 5 #include "chrome/renderer/render_widget.h"
6 6
7 #include "base/gfx/point.h" 7 #include "base/gfx/point.h"
8 #include "base/gfx/size.h" 8 #include "base/gfx/size.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 ime_control_x_ = caret_rect.x; 872 ime_control_x_ = caret_rect.x;
873 ime_control_y_ = caret_rect.y; 873 ime_control_y_ = caret_rect.y;
874 } 874 }
875 875
876 WebScreenInfo RenderWidget::screenInfo() { 876 WebScreenInfo RenderWidget::screenInfo() {
877 WebScreenInfo results; 877 WebScreenInfo results;
878 Send(new ViewHostMsg_GetScreenInfo(routing_id_, host_window_, &results)); 878 Send(new ViewHostMsg_GetScreenInfo(routing_id_, host_window_, &results));
879 return results; 879 return results;
880 } 880 }
881 881
882 void RenderWidget::SchedulePluginMove(const WebPluginGeometry& move) { 882 void RenderWidget::SchedulePluginMove(
883 const webkit_glue::WebPluginGeometry& move) {
883 size_t i = 0; 884 size_t i = 0;
884 for (; i < plugin_window_moves_.size(); ++i) { 885 for (; i < plugin_window_moves_.size(); ++i) {
885 if (plugin_window_moves_[i].window == move.window) { 886 if (plugin_window_moves_[i].window == move.window) {
886 if (move.rects_valid) { 887 if (move.rects_valid) {
887 plugin_window_moves_[i] = move; 888 plugin_window_moves_[i] = move;
888 } else { 889 } else {
889 plugin_window_moves_[i].visible = move.visible; 890 plugin_window_moves_[i].visible = move.visible;
890 } 891 }
891 break; 892 break;
892 } 893 }
893 } 894 }
894 895
895 if (i == plugin_window_moves_.size()) 896 if (i == plugin_window_moves_.size())
896 plugin_window_moves_.push_back(move); 897 plugin_window_moves_.push_back(move);
897 } 898 }
898 899
899 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { 900 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) {
900 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); 901 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin();
901 i != plugin_window_moves_.end(); ++i) { 902 i != plugin_window_moves_.end(); ++i) {
902 if (i->window == window) { 903 if (i->window == window) {
903 plugin_window_moves_.erase(i); 904 plugin_window_moves_.erase(i);
904 break; 905 break;
905 } 906 }
906 } 907 }
907 } 908 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698