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

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

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 years, 6 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/printing/win_printing_context.cc ('k') | chrome/browser/views/theme_helpers.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/tab_contents/tab_contents_view_win.h" 5 #include "chrome/browser/tab_contents/tab_contents_view_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas_paint.h"
10 #include "app/os_exchange_data.h" 10 #include "app/os_exchange_data.h"
11 #include "chrome/browser/bookmarks/bookmark_drag_data.h" 11 #include "chrome/browser/bookmarks/bookmark_drag_data.h"
12 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. 12 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful.
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/download/download_request_manager.h" 14 #include "chrome/browser/download/download_request_manager.h"
15 #include "chrome/browser/renderer_host/render_process_host.h" 15 #include "chrome/browser/renderer_host/render_process_host.h"
16 #include "chrome/browser/renderer_host/render_view_host.h" 16 #include "chrome/browser/renderer_host/render_view_host.h"
17 #include "chrome/browser/renderer_host/render_view_host_factory.h" 17 #include "chrome/browser/renderer_host/render_view_host_factory.h"
18 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" 18 #include "chrome/browser/renderer_host/render_widget_host_view_win.h"
19 #include "chrome/browser/tab_contents/render_view_context_menu_win.h" 19 #include "chrome/browser/tab_contents/render_view_context_menu_win.h"
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 } 608 }
609 return false; 609 return false;
610 } 610 }
611 611
612 void TabContentsViewWin::WheelZoom(int distance) { 612 void TabContentsViewWin::WheelZoom(int distance) {
613 if (tab_contents()->delegate()) { 613 if (tab_contents()->delegate()) {
614 bool zoom_in = distance > 0; 614 bool zoom_in = distance > 0;
615 tab_contents()->delegate()->ContentsZoomChange(zoom_in); 615 tab_contents()->delegate()->ContentsZoomChange(zoom_in);
616 } 616 }
617 } 617 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/win_printing_context.cc ('k') | chrome/browser/views/theme_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698