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

Side by Side Diff: chrome/browser/tab_contents/web_contents_view_win.cc

Issue 67044: Fix missing backing store in Linux. (Closed)
Patch Set: Delete unnecessary member variable. Created 11 years, 8 months 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
« no previous file with comments | « chrome/browser/tab_contents/web_contents_view_win.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/browser/tab_contents/web_contents_view_win.h" 5 #include "chrome/browser/tab_contents/web_contents_view_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h"
10 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. 10 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful.
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 // if the location bar was focused and the tab is dragged out), or it may 288 // if the location bar was focused and the tab is dragged out), or it may
289 // no longer be focusable (e.g. if the location bar was focused and then 289 // no longer be focusable (e.g. if the location bar was focused and then
290 // we switched to fullscreen mode). In that case we default to the 290 // we switched to fullscreen mode). In that case we default to the
291 // default focus. 291 // default focus.
292 SetInitialFocus(); 292 SetInitialFocus();
293 } 293 }
294 view_storage->RemoveView(last_focused_view_storage_id_); 294 view_storage->RemoveView(last_focused_view_storage_id_);
295 } 295 }
296 } 296 }
297 297
298 void WebContentsViewWin::SetChildSize(RenderWidgetHostView* rwh_view) {
299 rwh_view->SetSize(GetContainerSize());
300 }
301
298 void WebContentsViewWin::UpdateDragCursor(bool is_drop_target) { 302 void WebContentsViewWin::UpdateDragCursor(bool is_drop_target) {
299 drop_target_->set_is_drop_target(is_drop_target); 303 drop_target_->set_is_drop_target(is_drop_target);
300 } 304 }
301 305
302 void WebContentsViewWin::TakeFocus(bool reverse) { 306 void WebContentsViewWin::TakeFocus(bool reverse) {
303 views::FocusManager* focus_manager = 307 views::FocusManager* focus_manager =
304 views::FocusManager::GetFocusManager(GetNativeView()); 308 views::FocusManager::GetFocusManager(GetNativeView());
305 309
306 // We may not have a focus manager if the tab has been switched before this 310 // We may not have a focus manager if the tab has been switched before this
307 // message arrived. 311 // message arrived.
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 } 594 }
591 return false; 595 return false;
592 } 596 }
593 597
594 void WebContentsViewWin::WheelZoom(int distance) { 598 void WebContentsViewWin::WheelZoom(int distance) {
595 if (web_contents()->delegate()) { 599 if (web_contents()->delegate()) {
596 bool zoom_in = distance > 0; 600 bool zoom_in = distance > 0;
597 web_contents()->delegate()->ContentsZoomChange(zoom_in); 601 web_contents()->delegate()->ContentsZoomChange(zoom_in);
598 } 602 }
599 } 603 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents_view_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698