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

Side by Side Diff: components/omnibox/browser/omnibox_edit_unittest.cc

Issue 2641003002: Show scheme in black and content in gray for data: protocol urls (Closed)
Patch Set: Move misplaced #include to mm files Created 3 years, 9 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
« no previous file with comments | « components/omnibox/browser/DEPS ('k') | components/omnibox/browser/omnibox_view.h » ('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 (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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override { 78 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override {
79 return false; 79 return false;
80 } 80 }
81 gfx::NativeView GetNativeView() const override { return nullptr; } 81 gfx::NativeView GetNativeView() const override { return nullptr; }
82 gfx::NativeView GetRelativeWindowForPopup() const override { return nullptr; } 82 gfx::NativeView GetRelativeWindowForPopup() const override { return nullptr; }
83 int GetTextWidth() const override { return 0; } 83 int GetTextWidth() const override { return 0; }
84 int GetWidth() const override { return 0; } 84 int GetWidth() const override { return 0; }
85 bool IsImeComposing() const override { return false; } 85 bool IsImeComposing() const override { return false; }
86 int GetOmniboxTextLength() const override { return 0; } 86 int GetOmniboxTextLength() const override { return 0; }
87 void EmphasizeURLComponents() override {} 87 void EmphasizeURLComponents() override {}
88 void SetEmphasis(bool emphasize, const gfx::Range& range) override {}
89 void UpdateSchemeStyle(const gfx::Range& range) override {}
88 90
89 const base::string16& inline_autocomplete_text() const { 91 const base::string16& inline_autocomplete_text() const {
90 return inline_autocomplete_text_; 92 return inline_autocomplete_text_;
91 } 93 }
92 94
93 private: 95 private:
94 base::string16 text_; 96 base::string16 text_;
95 base::string16 inline_autocomplete_text_; 97 base::string16 inline_autocomplete_text_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(TestingOmniboxView); 99 DISALLOW_COPY_AND_ASSIGN(TestingOmniboxView);
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 alternate_nav_url, base::string16(), 0); 384 alternate_nav_url, base::string16(), 0);
383 EXPECT_TRUE(AutocompleteInput::HasHTTPScheme( 385 EXPECT_TRUE(AutocompleteInput::HasHTTPScheme(
384 client->alternate_nav_match().fill_into_edit)); 386 client->alternate_nav_match().fill_into_edit));
385 387
386 model()->SetUserText(base::ASCIIToUTF16("abcd")); 388 model()->SetUserText(base::ASCIIToUTF16("abcd"));
387 model()->OpenMatch(match, WindowOpenDisposition::CURRENT_TAB, 389 model()->OpenMatch(match, WindowOpenDisposition::CURRENT_TAB,
388 alternate_nav_url, base::string16(), 0); 390 alternate_nav_url, base::string16(), 0);
389 EXPECT_TRUE(AutocompleteInput::HasHTTPScheme( 391 EXPECT_TRUE(AutocompleteInput::HasHTTPScheme(
390 client->alternate_nav_match().fill_into_edit)); 392 client->alternate_nav_match().fill_into_edit));
391 } 393 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/DEPS ('k') | components/omnibox/browser/omnibox_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698