| 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/browser/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1876 if (view) | 1876 if (view) |
| 1877 view->Activate(); | 1877 view->Activate(); |
| 1878 } | 1878 } |
| 1879 | 1879 |
| 1880 void RenderViewHost::OnMsgBlur() { | 1880 void RenderViewHost::OnMsgBlur() { |
| 1881 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 1881 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
| 1882 if (view) | 1882 if (view) |
| 1883 view->Deactivate(); | 1883 view->Deactivate(); |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 gfx::Rect RenderViewHost::GetRootWindowResizerRect() const { | |
| 1887 return delegate_->GetRootWindowResizerRect(); | |
| 1888 } | |
| 1889 | |
| 1890 void RenderViewHost::ForwardMouseEvent( | 1886 void RenderViewHost::ForwardMouseEvent( |
| 1891 const WebKit::WebMouseEvent& mouse_event) { | 1887 const WebKit::WebMouseEvent& mouse_event) { |
| 1892 | 1888 |
| 1893 // We make a copy of the mouse event because | 1889 // We make a copy of the mouse event because |
| 1894 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. | 1890 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. |
| 1895 WebKit::WebMouseEvent event_copy(mouse_event); | 1891 WebKit::WebMouseEvent event_copy(mouse_event); |
| 1896 RenderWidgetHost::ForwardMouseEvent(event_copy); | 1892 RenderWidgetHost::ForwardMouseEvent(event_copy); |
| 1897 | 1893 |
| 1898 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 1894 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
| 1899 if (view) { | 1895 if (view) { |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2246 } | 2242 } |
| 2247 #else | 2243 #else |
| 2248 void RenderViewHost::OnPagesReadyForPreview(int fd_in_browser) { | 2244 void RenderViewHost::OnPagesReadyForPreview(int fd_in_browser) { |
| 2249 // TODO(kmadhusu): Function definition needs to be changed. | 2245 // TODO(kmadhusu): Function definition needs to be changed. |
| 2250 // fd_in_browser should be the file descriptor of the metafile. | 2246 // fd_in_browser should be the file descriptor of the metafile. |
| 2251 | 2247 |
| 2252 // Send the printingDone msg for now. | 2248 // Send the printingDone msg for now. |
| 2253 Send(new ViewMsg_PrintingDone(routing_id(), -1, true)); | 2249 Send(new ViewMsg_PrintingDone(routing_id(), -1, true)); |
| 2254 } | 2250 } |
| 2255 #endif | 2251 #endif |
| OLD | NEW |