OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // KeywordExtensionsDelegate contains the extensions-only logic used by | 5 // KeywordExtensionsDelegate contains the extensions-only logic used by |
6 // KeywordProvider. | 6 // KeywordProvider. |
7 // This file contains the dummy implementation of KeywordExtensionsDelegate, | 7 // This file contains the dummy implementation of KeywordExtensionsDelegate, |
8 // which does nothing. | 8 // which does nothing. |
9 | 9 |
10 #ifndef COMPONENTS_OMNIBOX_BROWSER_KEYWORD_EXTENSIONS_DELEGATE_H_ | 10 #ifndef COMPONENTS_OMNIBOX_BROWSER_KEYWORD_EXTENSIONS_DELEGATE_H_ |
11 #define COMPONENTS_OMNIBOX_BROWSER_KEYWORD_EXTENSIONS_DELEGATE_H_ | 11 #define COMPONENTS_OMNIBOX_BROWSER_KEYWORD_EXTENSIONS_DELEGATE_H_ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | |
16 #include "base/macros.h" | 15 #include "base/macros.h" |
17 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
18 | 17 |
19 class AutocompleteInput; | 18 class AutocompleteInput; |
20 class KeywordProvider; | 19 class KeywordProvider; |
21 class TemplateURL; | 20 class TemplateURL; |
22 | 21 |
23 class KeywordExtensionsDelegate { | 22 class KeywordExtensionsDelegate { |
24 public: | 23 public: |
25 explicit KeywordExtensionsDelegate(KeywordProvider* provider); | 24 explicit KeywordExtensionsDelegate(KeywordProvider* provider); |
(...skipping 24 matching lines...) Expand all Loading... |
50 // If an extension previously entered extension keyword mode, exits extension | 49 // If an extension previously entered extension keyword mode, exits extension |
51 // keyword mode. This happens when the user has cleared the keyword or closed | 50 // keyword mode. This happens when the user has cleared the keyword or closed |
52 // the omnibox popup. | 51 // the omnibox popup. |
53 virtual void MaybeEndExtensionKeywordMode(); | 52 virtual void MaybeEndExtensionKeywordMode(); |
54 | 53 |
55 private: | 54 private: |
56 DISALLOW_COPY_AND_ASSIGN(KeywordExtensionsDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(KeywordExtensionsDelegate); |
57 }; | 56 }; |
58 | 57 |
59 #endif // COMPONENTS_OMNIBOX_BROWSER_KEYWORD_EXTENSIONS_DELEGATE_H_ | 58 #endif // COMPONENTS_OMNIBOX_BROWSER_KEYWORD_EXTENSIONS_DELEGATE_H_ |
OLD | NEW |