| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/gfx/point.h" | 9 #include "base/gfx/point.h" |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 Send(new ViewHostMsg_RequestMove(routing_id_, pos)); | 648 Send(new ViewHostMsg_RequestMove(routing_id_, pos)); |
| 649 } else { | 649 } else { |
| 650 initial_pos_ = pos; | 650 initial_pos_ = pos; |
| 651 } | 651 } |
| 652 } | 652 } |
| 653 | 653 |
| 654 void RenderWidget::GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect) { | 654 void RenderWidget::GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect) { |
| 655 Send(new ViewHostMsg_GetRootWindowRect(routing_id_, host_window_, rect)); | 655 Send(new ViewHostMsg_GetRootWindowRect(routing_id_, host_window_, rect)); |
| 656 } | 656 } |
| 657 | 657 |
| 658 void RenderWidget::GetRootWindowResizerRect(WebWidget* webwidget, | 658 void RenderWidget::GetRootWindowResizerRect(WebWidget* webwidget, |
| 659 gfx::Rect* rect) { | 659 gfx::Rect* rect) { |
| 660 Send(new ViewHostMsg_GetRootWindowResizerRect(routing_id_, host_window_, rect)
); | 660 Send(new ViewHostMsg_GetRootWindowResizerRect(routing_id_, host_window_, |
| 661 rect)); |
| 661 } | 662 } |
| 662 | 663 |
| 663 void RenderWidget::OnImeSetInputMode(bool is_active) { | 664 void RenderWidget::OnImeSetInputMode(bool is_active) { |
| 664 // To prevent this renderer process from sending unnecessary IPC messages to | 665 // To prevent this renderer process from sending unnecessary IPC messages to |
| 665 // a browser process, we permit the renderer process to send IPC messages | 666 // a browser process, we permit the renderer process to send IPC messages |
| 666 // only during the IME attached to the browser process is active. | 667 // only during the IME attached to the browser process is active. |
| 667 ime_is_active_ = is_active; | 668 ime_is_active_ = is_active; |
| 668 } | 669 } |
| 669 | 670 |
| 670 void RenderWidget::OnImeSetComposition(int string_type, | 671 void RenderWidget::OnImeSetComposition(int string_type, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 for (; i < plugin_window_moves_.size(); ++i) { | 769 for (; i < plugin_window_moves_.size(); ++i) { |
| 769 if (plugin_window_moves_[i].window == move.window) { | 770 if (plugin_window_moves_[i].window == move.window) { |
| 770 plugin_window_moves_[i] = move; | 771 plugin_window_moves_[i] = move; |
| 771 break; | 772 break; |
| 772 } | 773 } |
| 773 } | 774 } |
| 774 | 775 |
| 775 if (i == plugin_window_moves_.size()) | 776 if (i == plugin_window_moves_.size()) |
| 776 plugin_window_moves_.push_back(move); | 777 plugin_window_moves_.push_back(move); |
| 777 } | 778 } |
| OLD | NEW |