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 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1854 if (view) | 1854 if (view) |
1855 view->Activate(); | 1855 view->Activate(); |
1856 } | 1856 } |
1857 | 1857 |
1858 void RenderViewHost::OnMsgBlur() { | 1858 void RenderViewHost::OnMsgBlur() { |
1859 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 1859 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
1860 if (view) | 1860 if (view) |
1861 view->Deactivate(); | 1861 view->Deactivate(); |
1862 } | 1862 } |
1863 | 1863 |
1864 gfx::Rect RenderViewHost::GetRootWindowResizerRect() const { | |
1865 return delegate_->GetRootWindowResizerRect(); | |
1866 } | |
1867 | |
1868 void RenderViewHost::ForwardMouseEvent( | 1864 void RenderViewHost::ForwardMouseEvent( |
1869 const WebKit::WebMouseEvent& mouse_event) { | 1865 const WebKit::WebMouseEvent& mouse_event) { |
1870 | 1866 |
1871 // We make a copy of the mouse event because | 1867 // We make a copy of the mouse event because |
1872 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. | 1868 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. |
1873 WebKit::WebMouseEvent event_copy(mouse_event); | 1869 WebKit::WebMouseEvent event_copy(mouse_event); |
1874 RenderWidgetHost::ForwardMouseEvent(event_copy); | 1870 RenderWidgetHost::ForwardMouseEvent(event_copy); |
1875 | 1871 |
1876 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 1872 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
1877 if (view) { | 1873 if (view) { |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2224 } | 2220 } |
2225 #else | 2221 #else |
2226 void RenderViewHost::OnPagesReadyForPreview(int fd_in_browser) { | 2222 void RenderViewHost::OnPagesReadyForPreview(int fd_in_browser) { |
2227 // TODO(kmadhusu): Function definition needs to be changed. | 2223 // TODO(kmadhusu): Function definition needs to be changed. |
2228 // fd_in_browser should be the file descriptor of the metafile. | 2224 // fd_in_browser should be the file descriptor of the metafile. |
2229 | 2225 |
2230 // Send the printingDone msg for now. | 2226 // Send the printingDone msg for now. |
2231 Send(new ViewMsg_PrintingDone(routing_id(), -1, true)); | 2227 Send(new ViewMsg_PrintingDone(routing_id(), -1, true)); |
2232 } | 2228 } |
2233 #endif | 2229 #endif |
OLD | NEW |