Chromium Code Reviews| 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 "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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 696 | 696 |
| 697 void RenderWidget::GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect) { | 697 void RenderWidget::GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect) { |
| 698 Send(new ViewHostMsg_GetRootWindowRect(routing_id_, host_window_, rect)); | 698 Send(new ViewHostMsg_GetRootWindowRect(routing_id_, host_window_, rect)); |
| 699 } | 699 } |
| 700 | 700 |
| 701 void RenderWidget::GetRootWindowResizerRect(WebWidget* webwidget, | 701 void RenderWidget::GetRootWindowResizerRect(WebWidget* webwidget, |
| 702 gfx::Rect* rect) { | 702 gfx::Rect* rect) { |
| 703 // This is disabled to verify if WebKit is responsible for the slow down | 703 // This is disabled to verify if WebKit is responsible for the slow down |
| 704 // that was witnessed in the page cycler tests when the resize corner | 704 // that was witnessed in the page cycler tests when the resize corner |
| 705 // code was commited... | 705 // code was commited... |
| 706 #if defined(OS_MACOSX) | |
|
MAD
2009/02/19 18:55:12
Can you move the comment above within the elif?
| |
| 707 // ...we need it enabled on Mac so scrollbars are usable. | |
| 708 *rect = resizer_rect_; | |
| 709 #elif defined(OS_WIN) || defined(OS_LINUX) | |
| 706 *rect = gfx::Rect(); // resizer_rect_; | 710 *rect = gfx::Rect(); // resizer_rect_; |
| 711 #endif | |
| 707 } | 712 } |
| 708 | 713 |
| 709 void RenderWidget::OnImeSetInputMode(bool is_active) { | 714 void RenderWidget::OnImeSetInputMode(bool is_active) { |
| 710 // To prevent this renderer process from sending unnecessary IPC messages to | 715 // To prevent this renderer process from sending unnecessary IPC messages to |
| 711 // a browser process, we permit the renderer process to send IPC messages | 716 // a browser process, we permit the renderer process to send IPC messages |
| 712 // only during the IME attached to the browser process is active. | 717 // only during the IME attached to the browser process is active. |
| 713 ime_is_active_ = is_active; | 718 ime_is_active_ = is_active; |
| 714 } | 719 } |
| 715 | 720 |
| 716 void RenderWidget::OnImeSetComposition(int string_type, | 721 void RenderWidget::OnImeSetComposition(int string_type, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 834 for (; i < plugin_window_moves_.size(); ++i) { | 839 for (; i < plugin_window_moves_.size(); ++i) { |
| 835 if (plugin_window_moves_[i].window == move.window) { | 840 if (plugin_window_moves_[i].window == move.window) { |
| 836 plugin_window_moves_[i] = move; | 841 plugin_window_moves_[i] = move; |
| 837 break; | 842 break; |
| 838 } | 843 } |
| 839 } | 844 } |
| 840 | 845 |
| 841 if (i == plugin_window_moves_.size()) | 846 if (i == plugin_window_moves_.size()) |
| 842 plugin_window_moves_.push_back(move); | 847 plugin_window_moves_.push_back(move); |
| 843 } | 848 } |
| OLD | NEW |