diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-01-04 14:17:57 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-01-05 10:05:06 +0000 |
commit | 39d357e3248f80abea0159765ff39554affb40db (patch) | |
tree | aba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/ui/views/animation/ink_drop_host_view.h | |
parent | 87778abf5a1f89266f37d1321b92a21851d8244d (diff) | |
download | qtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz |
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2
Change-Id: I20d43c737f82764d857ada9a55586901b18b9243
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/ui/views/animation/ink_drop_host_view.h')
-rw-r--r-- | chromium/ui/views/animation/ink_drop_host_view.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chromium/ui/views/animation/ink_drop_host_view.h b/chromium/ui/views/animation/ink_drop_host_view.h index 030faa810d1..2f30b24b3b7 100644 --- a/chromium/ui/views/animation/ink_drop_host_view.h +++ b/chromium/ui/views/animation/ink_drop_host_view.h @@ -38,6 +38,16 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost { void set_ink_drop_size(const gfx::Size& size) { ink_drop_size_ = size; } protected: + // Used in SetInkDropMode() to specify whether the ink drop effect is enabled + // or not for the view. In case of having an ink drop, it also specifies + // whether the default gesture event handler for the ink drop should be + // installed or the subclass will handle gesture events itself. + enum class InkDropMode { + OFF, + ON, + ON_NO_GESTURE_HANDLER, + }; + static const int kInkDropSmallCornerRadius; void set_ink_drop_visible_opacity(float visible_opacity) { @@ -84,7 +94,7 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost { // Toggle to enable/disable an InkDrop on this View. Descendants can override // CreateInkDropHighlight() and CreateInkDropRipple() to change the look/feel // of the InkDrop. - void SetHasInkDrop(bool has_an_ink_drop); + void SetInkDropMode(InkDropMode ink_drop_mode); private: class InkDropGestureHandler; |