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/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/os_exchange_data.h" | |
10 #include "base/file_path.h" | 9 #include "base/file_path.h" |
11 #include "base/keyboard_codes.h" | 10 #include "base/keyboard_codes.h" |
12 #include "base/time.h" | 11 #include "base/time.h" |
13 #include "base/win_util.h" | 12 #include "base/win_util.h" |
14 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. | 13 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. |
15 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
16 #include "chrome/browser/download/download_request_limiter.h" | 15 #include "chrome/browser/download/download_request_limiter.h" |
17 #include "chrome/browser/renderer_host/render_process_host.h" | 16 #include "chrome/browser/renderer_host/render_process_host.h" |
18 #include "chrome/browser/renderer_host/render_view_host.h" | 17 #include "chrome/browser/renderer_host/render_view_host.h" |
19 #include "chrome/browser/renderer_host/render_view_host_factory.h" | 18 #include "chrome/browser/renderer_host/render_view_host_factory.h" |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 } | 559 } |
561 return false; | 560 return false; |
562 } | 561 } |
563 | 562 |
564 void TabContentsViewWin::WheelZoom(int distance) { | 563 void TabContentsViewWin::WheelZoom(int distance) { |
565 if (tab_contents()->delegate()) { | 564 if (tab_contents()->delegate()) { |
566 bool zoom_in = distance > 0; | 565 bool zoom_in = distance > 0; |
567 tab_contents()->delegate()->ContentsZoomChange(zoom_in); | 566 tab_contents()->delegate()->ContentsZoomChange(zoom_in); |
568 } | 567 } |
569 } | 568 } |
OLD | NEW |