| 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 "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/browser/browser_process.h" | |
| 11 #include "chrome/browser/download/download_request_limiter.h" | 10 #include "chrome/browser/download/download_request_limiter.h" |
| 12 #include "chrome/browser/renderer_host/render_process_host.h" | 11 #include "chrome/browser/renderer_host/render_process_host.h" |
| 13 #include "chrome/browser/renderer_host/render_view_host.h" | 12 #include "chrome/browser/renderer_host/render_view_host.h" |
| 14 #include "chrome/browser/renderer_host/render_view_host_factory.h" | 13 #include "chrome/browser/renderer_host/render_view_host_factory.h" |
| 15 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" | 14 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" |
| 16 #include "chrome/browser/tab_contents/interstitial_page.h" | 15 #include "chrome/browser/tab_contents/interstitial_page.h" |
| 17 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
| 18 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 17 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 19 #include "chrome/browser/tab_contents/web_drop_target_win.h" | 18 #include "chrome/browser/tab_contents/web_drop_target_win.h" |
| 20 #include "chrome/browser/ui/browser.h" // TODO(beng): this dependency is awful. | 19 #include "chrome/browser/ui/browser.h" // TODO(beng): this dependency is awful. |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 } | 567 } |
| 569 return false; | 568 return false; |
| 570 } | 569 } |
| 571 | 570 |
| 572 void TabContentsViewWin::WheelZoom(int distance) { | 571 void TabContentsViewWin::WheelZoom(int distance) { |
| 573 if (tab_contents()->delegate()) { | 572 if (tab_contents()->delegate()) { |
| 574 bool zoom_in = distance > 0; | 573 bool zoom_in = distance > 0; |
| 575 tab_contents()->delegate()->ContentsZoomChange(zoom_in); | 574 tab_contents()->delegate()->ContentsZoomChange(zoom_in); |
| 576 } | 575 } |
| 577 } | 576 } |
| OLD | NEW |