OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |