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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 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 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 if (view) 1865 if (view)
1866 view->Activate(); 1866 view->Activate();
1867 } 1867 }
1868 1868
1869 void RenderViewHost::OnMsgBlur() { 1869 void RenderViewHost::OnMsgBlur() {
1870 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1870 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1871 if (view) 1871 if (view)
1872 view->Deactivate(); 1872 view->Deactivate();
1873 } 1873 }
1874 1874
1875 gfx::Rect RenderViewHost::GetRootWindowResizerRect() const {
1876 return delegate_->GetRootWindowResizerRect();
1877 }
1878
1879 void RenderViewHost::ForwardMouseEvent( 1875 void RenderViewHost::ForwardMouseEvent(
1880 const WebKit::WebMouseEvent& mouse_event) { 1876 const WebKit::WebMouseEvent& mouse_event) {
1881 1877
1882 // We make a copy of the mouse event because 1878 // We make a copy of the mouse event because
1883 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. 1879 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|.
1884 WebKit::WebMouseEvent event_copy(mouse_event); 1880 WebKit::WebMouseEvent event_copy(mouse_event);
1885 RenderWidgetHost::ForwardMouseEvent(event_copy); 1881 RenderWidgetHost::ForwardMouseEvent(event_copy);
1886 1882
1887 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1883 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1888 if (view) { 1884 if (view) {
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
2201 } 2197 }
2202 #else 2198 #else
2203 void RenderViewHost::OnPagesReadyForPreview(int fd_in_browser) { 2199 void RenderViewHost::OnPagesReadyForPreview(int fd_in_browser) {
2204 // TODO(kmadhusu): Function definition needs to be changed. 2200 // TODO(kmadhusu): Function definition needs to be changed.
2205 // fd_in_browser should be the file descriptor of the metafile. 2201 // fd_in_browser should be the file descriptor of the metafile.
2206 2202
2207 // Send the printingDone msg for now. 2203 // Send the printingDone msg for now.
2208 Send(new ViewMsg_PrintingDone(routing_id(), -1, true)); 2204 Send(new ViewMsg_PrintingDone(routing_id(), -1, true));
2209 } 2205 }
2210 #endif 2206 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698