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

Unified Diff: blimp/engine/feature/engine_render_widget_feature_unittest.cc

Issue 2007503002: Views: Replace resource ids with ui::TextEditCommand enum for text editing commands in Textfield. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added file deleted during rename. Created 4 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: blimp/engine/feature/engine_render_widget_feature_unittest.cc
diff --git a/blimp/engine/feature/engine_render_widget_feature_unittest.cc b/blimp/engine/feature/engine_render_widget_feature_unittest.cc
index 131183585f348add731d4db3761cd0ba695cb962..01dd38f5ad1d01e2a4e7b8a6353b822c23d6ffd7 100644
--- a/blimp/engine/feature/engine_render_widget_feature_unittest.cc
+++ b/blimp/engine/feature/engine_render_widget_feature_unittest.cc
@@ -143,8 +143,10 @@ class MockTextInputClient : public ui::TextInputClient {
}
void ExtendSelectionAndDelete(size_t before, size_t after) override {}
void EnsureCaretInRect(const gfx::Rect& rect) override {}
- bool IsEditCommandEnabled(int command_id) override { return false; }
- void SetEditCommandForNextKeyEvent(int command_id) override {}
+ bool IsEditCommandEnabled(ui::TextEditCommand command) const override {
+ return false;
+ }
+ void SetEditCommandForNextKeyEvent(ui::TextEditCommand command) override {}
bool GetTextFromRange(const gfx::Range& range,
base::string16* text) const override {
*text = base::string16(base::ASCIIToUTF16("green apple"));

Powered by Google App Engine
This is Rietveld 408576698