| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 ~WebstoreResult() override; | 39 ~WebstoreResult() override; |
| 40 | 40 |
| 41 const std::string& app_id() const { return app_id_; } | 41 const std::string& app_id() const { return app_id_; } |
| 42 const GURL& icon_url() const { return icon_url_; } | 42 const GURL& icon_url() const { return icon_url_; } |
| 43 extensions::Manifest::Type item_type() const { return item_type_; } | 43 extensions::Manifest::Type item_type() const { return item_type_; } |
| 44 bool is_paid() const { return is_paid_; } | 44 bool is_paid() const { return is_paid_; } |
| 45 | 45 |
| 46 // SearchResult overrides: | 46 // SearchResult overrides: |
| 47 void Open(int event_flags) override; | 47 void Open(int event_flags) override; |
| 48 void InvokeAction(int action_index, int event_flags) override; | 48 void InvokeAction(int action_index, int event_flags) override; |
| 49 scoped_ptr<SearchResult> Duplicate() const override; | 49 std::unique_ptr<SearchResult> Duplicate() const override; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 // Set the initial state and start observing both InstallObserver and | 52 // Set the initial state and start observing both InstallObserver and |
| 53 // ExtensionRegistryObserver. | 53 // ExtensionRegistryObserver. |
| 54 void InitAndStartObserving(); | 54 void InitAndStartObserving(); |
| 55 | 55 |
| 56 void UpdateActions(); | 56 void UpdateActions(); |
| 57 void SetDefaultDetails(); | 57 void SetDefaultDetails(); |
| 58 void OnIconLoaded(); | 58 void OnIconLoaded(); |
| 59 | 59 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 extensions::ExtensionRegistry* extension_registry_; // Not owned. | 91 extensions::ExtensionRegistry* extension_registry_; // Not owned. |
| 92 | 92 |
| 93 base::WeakPtrFactory<WebstoreResult> weak_factory_; | 93 base::WeakPtrFactory<WebstoreResult> weak_factory_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(WebstoreResult); | 95 DISALLOW_COPY_AND_ASSIGN(WebstoreResult); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace app_list | 98 } // namespace app_list |
| 99 | 99 |
| 100 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ | 100 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ |
| OLD | NEW |