Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Unified Diff: chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.h

Issue 11038014: [Android] Upstream remaining changes to NTP UI code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed indentation nit Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.h
diff --git a/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.h b/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..193c3ad971171f503578465c7632bdd06f17aa4c
--- /dev/null
+++ b/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_NEW_TAB_PAGE_READY_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_NEW_TAB_PAGE_READY_HANDLER_H_
+
+#include "base/compiler_specific.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+namespace base {
+class ListValue;
+}
+
+// Sends a notification when the NTP is completely finished loading
+// and navigating.
+class NewTabPageReadyHandler : public content::WebUIMessageHandler {
+ public:
+ NewTabPageReadyHandler();
+ virtual ~NewTabPageReadyHandler();
+
+ // WebUIMessageHandler implementation.
+ virtual void RegisterMessages() OVERRIDE;
+
+ // Callback for "notifyNTPReady".
+ void HandleNewTabPageReady(const base::ListValue* args);
+
+ // Callback for "NTPUnexpectedNavigation".
+ void HandleNewTabPageUnexpectedNavigation(const base::ListValue* args);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NewTabPageReadyHandler);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_NEW_TAB_PAGE_READY_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698