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

Side by Side Diff: content/browser/web_contents/aura/overscroll_window_delegate.cc

Issue 1119423003: Refactors away method implementations in ui::EventTargeter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactors ui::EventTargeter (rebased) Created 5 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
OLDNEW
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 ResetOverscroll(); 123 ResetOverscroll();
123 break; 124 break;
124 125
125 default: 126 default:
126 break; 127 break;
127 } 128 }
128 event->SetHandled(); 129 event->SetHandled();
129 } 130 }
130 131
131 } // namespace content 132 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc ('k') | ui/aura/window_targeter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698