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

Side by Side Diff: chrome/browser/views/tab_contents/tab_contents_view_win.cc

Issue 164543: Reverting 23406. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « base/window_impl.cc ('k') | views/widget/widget_win.cc » ('j') | 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/views/tab_contents/tab_contents_view_win.h" 5 #include "chrome/browser/views/tab_contents/tab_contents_view_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "app/gfx/canvas_paint.h" 9 #include "app/gfx/canvas_paint.h"
10 #include "app/os_exchange_data.h" 10 #include "app/os_exchange_data.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 tab_contents()->render_widget_host_view()->GetNativeView(), 240 tab_contents()->render_widget_host_view()->GetNativeView(),
241 title.c_str()); 241 title.c_str());
242 } 242 }
243 } 243 }
244 244
245 void TabContentsViewWin::OnTabCrashed() { 245 void TabContentsViewWin::OnTabCrashed() {
246 // Force an invalidation to render sad tab. We will notice we crashed when we 246 // Force an invalidation to render sad tab. We will notice we crashed when we
247 // paint. 247 // paint.
248 // Note that it's possible to get this message after the window was destroyed. 248 // Note that it's possible to get this message after the window was destroyed.
249 if (::IsWindow(GetNativeView())) 249 if (::IsWindow(GetNativeView()))
250 ::InvalidateRect(GetNativeView(), NULL, FALSE); 250 InvalidateRect(GetNativeView(), NULL, FALSE);
251 } 251 }
252 252
253 void TabContentsViewWin::SizeContents(const gfx::Size& size) { 253 void TabContentsViewWin::SizeContents(const gfx::Size& size) {
254 // TODO(brettw) this is a hack and should be removed. See tab_contents_view.h. 254 // TODO(brettw) this is a hack and should be removed. See tab_contents_view.h.
255 WasSized(size); 255 WasSized(size);
256 } 256 }
257 257
258 void TabContentsViewWin::Focus() { 258 void TabContentsViewWin::Focus() {
259 views::FocusManager* focus_manager = 259 views::FocusManager* focus_manager =
260 views::FocusManager::GetFocusManagerForNativeView(GetNativeView()); 260 views::FocusManager::GetFocusManagerForNativeView(GetNativeView());
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 673 }
674 return false; 674 return false;
675 } 675 }
676 676
677 void TabContentsViewWin::WheelZoom(int distance) { 677 void TabContentsViewWin::WheelZoom(int distance) {
678 if (tab_contents()->delegate()) { 678 if (tab_contents()->delegate()) {
679 bool zoom_in = distance > 0; 679 bool zoom_in = distance > 0;
680 tab_contents()->delegate()->ContentsZoomChange(zoom_in); 680 tab_contents()->delegate()->ContentsZoomChange(zoom_in);
681 } 681 }
682 } 682 }
OLDNEW
« no previous file with comments | « base/window_impl.cc ('k') | views/widget/widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698