| 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 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/callback_list.h" | 14 #include "base/callback_list.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
| 20 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
| 21 #include "content/public/browser/web_ui_controller.h" | 21 #include "content/public/browser/web_ui_controller.h" |
| 22 #include "content/public/browser/web_ui_message_handler.h" | 22 #include "content/public/browser/web_ui_message_handler.h" |
| 23 #include "ui/base/layout.h" | |
| 24 | 23 |
| 25 class AutocompleteResult; | 24 class AutocompleteResult; |
| 26 | 25 |
| 27 namespace base { | 26 namespace base { |
| 28 class DictionaryValue; | 27 class DictionaryValue; |
| 29 class ListValue; | 28 class ListValue; |
| 30 class RefCountedMemory; | |
| 31 } | 29 } |
| 32 | 30 |
| 33 #if defined(OS_CHROMEOS) | 31 #if defined(OS_CHROMEOS) |
| 34 namespace chromeos { | 32 namespace chromeos { |
| 35 namespace system { | 33 namespace system { |
| 36 class PointerDeviceObserver; | 34 class PointerDeviceObserver; |
| 37 } // namespace system | 35 } // namespace system |
| 38 } // namespace chromeos | 36 } // namespace chromeos |
| 39 #endif | 37 #endif |
| 40 | 38 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // loading on the HTML/JS side. | 124 // loading on the HTML/JS side. |
| 127 std::unique_ptr<OnFinishedLoadingCallbackList::Subscription> | 125 std::unique_ptr<OnFinishedLoadingCallbackList::Subscription> |
| 128 RegisterOnFinishedLoadingCallback(const base::Closure& callback); | 126 RegisterOnFinishedLoadingCallback(const base::Closure& callback); |
| 129 | 127 |
| 130 // Takes the suggestions from |result| and adds them to |suggestions| so that | 128 // Takes the suggestions from |result| and adds them to |suggestions| so that |
| 131 // they can be passed to a JavaScript function. | 129 // they can be passed to a JavaScript function. |
| 132 static void ProcessAutocompleteSuggestions( | 130 static void ProcessAutocompleteSuggestions( |
| 133 const AutocompleteResult& result, | 131 const AutocompleteResult& result, |
| 134 base::ListValue* const suggestions); | 132 base::ListValue* const suggestions); |
| 135 | 133 |
| 136 static base::RefCountedMemory* GetFaviconResourceBytes( | |
| 137 ui::ScaleFactor scale_factor); | |
| 138 | |
| 139 // Overridden from content::WebContentsObserver: | 134 // Overridden from content::WebContentsObserver: |
| 140 void DidStartProvisionalLoadForFrame( | 135 void DidStartProvisionalLoadForFrame( |
| 141 content::RenderFrameHost* render_frame_host, | 136 content::RenderFrameHost* render_frame_host, |
| 142 const GURL& validated_url, | 137 const GURL& validated_url, |
| 143 bool is_error_page, | 138 bool is_error_page, |
| 144 bool is_iframe_srcdoc) override; | 139 bool is_iframe_srcdoc) override; |
| 145 void DocumentLoadedInFrame( | 140 void DocumentLoadedInFrame( |
| 146 content::RenderFrameHost *render_frame_host) override; | 141 content::RenderFrameHost *render_frame_host) override; |
| 147 void DocumentOnLoadCompletedInMainFrame() override; | 142 void DocumentOnLoadCompletedInMainFrame() override; |
| 148 | 143 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 166 #endif | 161 #endif |
| 167 | 162 |
| 168 base::Time load_start_time_; | 163 base::Time load_start_time_; |
| 169 | 164 |
| 170 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 165 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
| 171 }; | 166 }; |
| 172 | 167 |
| 173 } // namespace options | 168 } // namespace options |
| 174 | 169 |
| 175 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 170 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| OLD | NEW |