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

Unified Diff: content/shell/renderer/test_runner/text_input_controller.h

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/text_input_controller.h
diff --git a/content/shell/renderer/test_runner/text_input_controller.h b/content/shell/renderer/test_runner/text_input_controller.h
deleted file mode 100644
index ef8c578a3c6212aef05aaf3727319e00c2f98dd7..0000000000000000000000000000000000000000
--- a/content/shell/renderer/test_runner/text_input_controller.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_
-#define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_
-
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-
-namespace blink {
-class WebFrame;
-class WebView;
-}
-
-namespace content {
-
-// TextInputController is bound to window.textInputController in Javascript
-// when content_shell is running. Layout tests use it to exercise various
-// corners of text input.
-class TextInputController : public base::SupportsWeakPtr<TextInputController> {
- public:
- TextInputController();
- ~TextInputController();
-
- void Install(blink::WebFrame* frame);
-
- void SetWebView(blink::WebView* view);
-
- private:
- friend class TextInputControllerBindings;
-
- void InsertText(const std::string& text);
- void UnmarkText();
- void DoCommand(const std::string& text);
- void SetMarkedText(const std::string& text, int start, int length);
- bool HasMarkedText();
- std::vector<int> MarkedRange();
- std::vector<int> SelectedRange();
- std::vector<int> FirstRectForCharacterRange(unsigned location,
- unsigned length);
- void SetComposition(const std::string& text);
-
- blink::WebView* view_;
-
- base::WeakPtrFactory<TextInputController> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(TextInputController);
-};
-
-} // namespace content
-
-#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXT_INPUT_CONTROLLER_H_
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | content/shell/renderer/test_runner/text_input_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698