| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/web_contents/aura/overscroll_window_delegate.h" | 5 #include "content/browser/web_contents/aura/overscroll_window_delegate.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "content/browser/frame_host/navigation_controller_impl.h" | 8 #include "content/browser/frame_host/navigation_controller_impl.h" |
| 9 #include "content/browser/frame_host/navigation_entry_impl.h" | 9 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 10 #include "content/browser/renderer_host/overscroll_controller_delegate.h" | 10 #include "content/browser/renderer_host/overscroll_controller_delegate.h" |
| 11 #include "content/public/browser/overscroll_configuration.h" | 11 #include "content/public/browser/overscroll_configuration.h" |
| 12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 13 #include "ui/events/event.h" |
| 13 #include "ui/gfx/image/image_png_rep.h" | 14 #include "ui/gfx/image/image_png_rep.h" |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 | 17 |
| 17 OverscrollWindowDelegate::OverscrollWindowDelegate( | 18 OverscrollWindowDelegate::OverscrollWindowDelegate( |
| 18 OverscrollControllerDelegate* delegate, | 19 OverscrollControllerDelegate* delegate, |
| 19 const gfx::Image& image) | 20 const gfx::Image& image) |
| 20 : delegate_(delegate), | 21 : delegate_(delegate), |
| 21 overscroll_mode_(OVERSCROLL_NONE), | 22 overscroll_mode_(OVERSCROLL_NONE), |
| 22 delta_x_(0.f), | 23 delta_x_(0.f), |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 ResetOverscroll(); | 121 ResetOverscroll(); |
| 121 break; | 122 break; |
| 122 | 123 |
| 123 default: | 124 default: |
| 124 break; | 125 break; |
| 125 } | 126 } |
| 126 event->SetHandled(); | 127 event->SetHandled(); |
| 127 } | 128 } |
| 128 | 129 |
| 129 } // namespace content | 130 } // namespace content |
| OLD | NEW |