| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void OnInlineAutocompleteTextCleared() override { | 73 void OnInlineAutocompleteTextCleared() override { |
| 74 inline_autocomplete_text_.clear(); | 74 inline_autocomplete_text_.clear(); |
| 75 } | 75 } |
| 76 void OnRevertTemporaryText() override {} | 76 void OnRevertTemporaryText() override {} |
| 77 void OnBeforePossibleChange() override {} | 77 void OnBeforePossibleChange() override {} |
| 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 void SetGrayTextAutocompletion(const base::string16& input) override {} | |
| 84 base::string16 GetGrayTextAutocompletion() const override { | |
| 85 return base::string16(); | |
| 86 } | |
| 87 int GetTextWidth() const override { return 0; } | 83 int GetTextWidth() const override { return 0; } |
| 88 int GetWidth() const override { return 0; } | 84 int GetWidth() const override { return 0; } |
| 89 bool IsImeComposing() const override { return false; } | 85 bool IsImeComposing() const override { return false; } |
| 90 int GetOmniboxTextLength() const override { return 0; } | 86 int GetOmniboxTextLength() const override { return 0; } |
| 91 void EmphasizeURLComponents() override {} | 87 void EmphasizeURLComponents() override {} |
| 92 | 88 |
| 93 const base::string16& inline_autocomplete_text() const { | 89 const base::string16& inline_autocomplete_text() const { |
| 94 return inline_autocomplete_text_; | 90 return inline_autocomplete_text_; |
| 95 } | 91 } |
| 96 | 92 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 alternate_nav_url, base::string16(), 0); | 382 alternate_nav_url, base::string16(), 0); |
| 387 EXPECT_TRUE(AutocompleteInput::HasHTTPScheme( | 383 EXPECT_TRUE(AutocompleteInput::HasHTTPScheme( |
| 388 client->alternate_nav_match().fill_into_edit)); | 384 client->alternate_nav_match().fill_into_edit)); |
| 389 | 385 |
| 390 model()->SetUserText(base::ASCIIToUTF16("abcd")); | 386 model()->SetUserText(base::ASCIIToUTF16("abcd")); |
| 391 model()->OpenMatch(match, WindowOpenDisposition::CURRENT_TAB, | 387 model()->OpenMatch(match, WindowOpenDisposition::CURRENT_TAB, |
| 392 alternate_nav_url, base::string16(), 0); | 388 alternate_nav_url, base::string16(), 0); |
| 393 EXPECT_TRUE(AutocompleteInput::HasHTTPScheme( | 389 EXPECT_TRUE(AutocompleteInput::HasHTTPScheme( |
| 394 client->alternate_nav_match().fill_into_edit)); | 390 client->alternate_nav_match().fill_into_edit)); |
| 395 } | 391 } |
| OLD | NEW |