OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_RENDERER_HOST_INPUT_GESTURE_TEXT_SELECTOR_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_TEXT_SELECTOR_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_TEXT_SELECTOR_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_TEXT_SELECTOR_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 private: | 48 private: |
49 friend class GestureTextSelectorTest; | 49 friend class GestureTextSelectorTest; |
50 FRIEND_TEST_ALL_PREFIXES(GestureTextSelectorTest, | 50 FRIEND_TEST_ALL_PREFIXES(GestureTextSelectorTest, |
51 ShouldStartTextSelection); | 51 ShouldStartTextSelection); |
52 | 52 |
53 static bool ShouldStartTextSelection(const ui::MotionEvent& event); | 53 static bool ShouldStartTextSelection(const ui::MotionEvent& event); |
54 | 54 |
55 GestureTextSelectorClient* client_; | 55 GestureTextSelectorClient* client_; |
56 bool text_selection_triggered_; | 56 bool text_selection_triggered_; |
| 57 bool secondary_button_pressed_; |
57 float anchor_x_; | 58 float anchor_x_; |
58 float anchor_y_; | 59 float anchor_y_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(GestureTextSelector); | 61 DISALLOW_COPY_AND_ASSIGN(GestureTextSelector); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace content | 64 } // namespace content |
64 | 65 |
65 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_TEXT_SELECTOR_H_ | 66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_TEXT_SELECTOR_H_ |
OLD | NEW |