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

Unified Diff: chrome/browser/ui/android/navigation_popup.h

Issue 11743011: Add history popup when long pressing on the back key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a padding drawable for null favicons to avoid jumping UI. Created 7 years, 12 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
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/ui/android/navigation_popup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/navigation_popup.h
diff --git a/chrome/browser/ui/android/navigation_popup.h b/chrome/browser/ui/android/navigation_popup.h
new file mode 100644
index 0000000000000000000000000000000000000000..8b1a43cd99c22dc943ebf681119050f511b7f3e2
--- /dev/null
+++ b/chrome/browser/ui/android/navigation_popup.h
@@ -0,0 +1,45 @@
+// 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_ANDROID_NAVIGATION_POPUP_H_
+#define CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
+
+#include <jni.h>
+
+#include "base/android/jni_helper.h"
+#include "base/basictypes.h"
+#include "chrome/common/cancelable_task_tracker.h"
+
+class GURL;
+
+namespace history {
+struct FaviconImageResult;
+}
+
+// The native bridge for the history navigation popup that provides additional
+// functionality to the UI widget.
+class NavigationPopup {
+ public:
+ NavigationPopup(JNIEnv* env, jobject obj);
+
+ void Destroy(JNIEnv* env, jobject obj);
+ void FetchFaviconForUrl(JNIEnv* env, jobject obj, jstring jurl);
+
+ void OnFaviconDataAvailable(GURL navigation_entry_url,
+ const history::FaviconImageResult& image_result);
+
+ static bool RegisterNavigationPopup(JNIEnv* env);
+
+ protected:
+ virtual ~NavigationPopup();
+
+ private:
+ JavaObjectWeakGlobalRef weak_jobject_;
+
+ CancelableTaskTracker cancelable_task_tracker_;
+
+ DISALLOW_COPY_AND_ASSIGN(NavigationPopup);
+};
+
+#endif // CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/ui/android/navigation_popup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698