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

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_edit_unittest.cc

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "base/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" 6 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h"
7 #include "chrome/browser/search_engines/template_url_service_factory.h" 7 #include "chrome/browser/search_engines/template_url_service_factory.h"
8 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" 8 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
9 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" 9 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h"
10 #include "chrome/browser/ui/omnibox/omnibox_view.h" 10 #include "chrome/browser/ui/omnibox/omnibox_view.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool animate_to_complete) OVERRIDE {} 62 bool animate_to_complete) OVERRIDE {}
63 virtual string16 GetInstantSuggestion() const OVERRIDE { return string16(); } 63 virtual string16 GetInstantSuggestion() const OVERRIDE { return string16(); }
64 virtual int TextWidth() const OVERRIDE { return 0; } 64 virtual int TextWidth() const OVERRIDE { return 0; }
65 virtual bool IsImeComposing() const OVERRIDE { return false; } 65 virtual bool IsImeComposing() const OVERRIDE { return false; }
66 66
67 #if defined(TOOLKIT_VIEWS) 67 #if defined(TOOLKIT_VIEWS)
68 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE { 68 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE {
69 return entry_width; 69 return entry_width;
70 } 70 }
71 virtual views::View* AddToView(views::View* parent) OVERRIDE { return NULL; } 71 virtual views::View* AddToView(views::View* parent) OVERRIDE { return NULL; }
72 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE { 72 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE {
73 return 0; 73 return 0;
74 } 74 }
75 virtual gfx::Font GetFont() { return gfx::Font(); } 75 virtual gfx::Font GetFont() { return gfx::Font(); }
76 virtual int WidthOfTextAfterCursor() { return 0; } 76 virtual int WidthOfTextAfterCursor() { return 0; }
77 #endif 77 #endif
78 78
79 virtual int GetOmniboxTextLength() const OVERRIDE { return 0; } 79 virtual int GetOmniboxTextLength() const OVERRIDE { return 0; }
80 virtual void EmphasizeURLComponents() OVERRIDE { } 80 virtual void EmphasizeURLComponents() OVERRIDE { }
81 81
82 private: 82 private:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 GURL url; 174 GURL url;
175 bool write_url; 175 bool write_url;
176 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected, 176 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected,
177 &result, &url, &write_url); 177 &result, &url, &write_url);
178 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i; 178 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i;
179 EXPECT_EQ(input[i].write_url, write_url) << " @" << i; 179 EXPECT_EQ(input[i].write_url, write_url) << " @" << i;
180 if (write_url) 180 if (write_url)
181 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i; 181 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i;
182 } 182 }
183 } 183 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/key_identifier_conversion_views.cc ('k') | chrome/browser/ui/omnibox/omnibox_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698