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

Side by Side Diff: content/renderer/render_widget.h

Issue 1203693003: Setting Accurate ScrollResult from Blink for Elastic Scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 // changed. If they are changed, the new value will be sent to the browser 341 // changed. If they are changed, the new value will be sent to the browser
342 // process. This method does nothing when the browser process is not able to 342 // process. This method does nothing when the browser process is not able to
343 // handle composition range and composition character bounds. 343 // handle composition range and composition character bounds.
344 void UpdateCompositionInfo(bool should_update_range); 344 void UpdateCompositionInfo(bool should_update_range);
345 345
346 #if defined(OS_ANDROID) 346 #if defined(OS_ANDROID)
347 void DidChangeBodyBackgroundColor(SkColor bg_color); 347 void DidChangeBodyBackgroundColor(SkColor bg_color);
348 bool DoesRecordFullLayer() const; 348 bool DoesRecordFullLayer() const;
349 #endif 349 #endif
350 350
351 #if defined(OS_MACOSX) && !defined(OS_IOS)
352 bool IsElasticOverscrollEnabled() const;
353 #endif
354
351 bool host_closing() const { return host_closing_; } 355 bool host_closing() const { return host_closing_; }
352 356
353 protected: 357 protected:
354 // Friend RefCounted so that the dtor can be non-public. Using this class 358 // Friend RefCounted so that the dtor can be non-public. Using this class
355 // without ref-counting is an error. 359 // without ref-counting is an error.
356 friend class base::RefCounted<RenderWidget>; 360 friend class base::RefCounted<RenderWidget>;
357 // For unit tests. 361 // For unit tests.
358 friend class RenderWidgetTest; 362 friend class RenderWidgetTest;
359 363
360 enum ResizeAck { 364 enum ResizeAck {
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 #endif // defined(VIDEO_HOLE) 815 #endif // defined(VIDEO_HOLE)
812 816
813 // A list of RenderFrames associated with this RenderWidget. Notifications 817 // A list of RenderFrames associated with this RenderWidget. Notifications
814 // are sent to each frame in the list for events such as changing 818 // are sent to each frame in the list for events such as changing
815 // visibility state for example. 819 // visibility state for example.
816 base::ObserverList<RenderFrameImpl> render_frames_; 820 base::ObserverList<RenderFrameImpl> render_frames_;
817 821
818 ui::MenuSourceType context_menu_source_type_; 822 ui::MenuSourceType context_menu_source_type_;
819 bool has_host_context_menu_location_; 823 bool has_host_context_menu_location_;
820 gfx::Point host_context_menu_location_; 824 gfx::Point host_context_menu_location_;
825 gfx::Vector2dF unused_delta_on_wheel_overscroll_;
821 826
822 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 827 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
823 }; 828 };
824 829
825 } // namespace content 830 } // namespace content
826 831
827 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 832 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698