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

Side by Side Diff: content/browser/renderer_host/input/gesture_text_selector.h

Issue 590483002: Check if Button is pressed for changing selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check only for Secondary Button Created 6 years, 3 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698