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

Side by Side Diff: components/test_runner/text_input_controller.h

Issue 2535303004: Consider TextInputController::inputMethodController() could be nullptr. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | components/test_runner/text_input_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_
6 #define COMPONENTS_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_ 6 #define COMPONENTS_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 void SetMarkedText(const std::string& text, int start, int length); 40 void SetMarkedText(const std::string& text, int start, int length);
41 bool HasMarkedText(); 41 bool HasMarkedText();
42 std::vector<int> MarkedRange(); 42 std::vector<int> MarkedRange();
43 std::vector<int> SelectedRange(); 43 std::vector<int> SelectedRange();
44 std::vector<int> FirstRectForCharacterRange(unsigned location, 44 std::vector<int> FirstRectForCharacterRange(unsigned location,
45 unsigned length); 45 unsigned length);
46 void SetComposition(const std::string& text); 46 void SetComposition(const std::string& text);
47 void ForceTextInputStateUpdate(); 47 void ForceTextInputStateUpdate();
48 48
49 blink::WebView* view(); 49 blink::WebView* view();
50 blink::WebInputMethodController* inputMethodController(); 50 // Returns the WebInputMethodController corresponding to the focused frame
51 // accepting IME. Could return nullptr if no such frame exists.
52 blink::WebInputMethodController* GetInputMethodController();
51 53
52 WebViewTestProxyBase* web_view_test_proxy_base_; 54 WebViewTestProxyBase* web_view_test_proxy_base_;
53 55
54 base::WeakPtrFactory<TextInputController> weak_factory_; 56 base::WeakPtrFactory<TextInputController> weak_factory_;
55 57
56 DISALLOW_COPY_AND_ASSIGN(TextInputController); 58 DISALLOW_COPY_AND_ASSIGN(TextInputController);
57 }; 59 };
58 60
59 } // namespace test_runner 61 } // namespace test_runner
60 62
61 #endif // COMPONENTS_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_ 63 #endif // COMPONENTS_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/text_input_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698