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

Side by Side 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, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
6 #define CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
7
8 #include <jni.h>
9
10 #include "base/android/jni_helper.h"
11 #include "base/basictypes.h"
12 #include "chrome/common/cancelable_task_tracker.h"
13
14 class GURL;
15
16 namespace history {
17 struct FaviconImageResult;
18 }
19
20 // The native bridge for the history navigation popup that provides additional
21 // functionality to the UI widget.
22 class NavigationPopup {
23 public:
24 NavigationPopup(JNIEnv* env, jobject obj);
25
26 void Destroy(JNIEnv* env, jobject obj);
27 void FetchFaviconForUrl(JNIEnv* env, jobject obj, jstring jurl);
28
29 void OnFaviconDataAvailable(GURL navigation_entry_url,
30 const history::FaviconImageResult& image_result);
31
32 static bool RegisterNavigationPopup(JNIEnv* env);
33
34 protected:
35 virtual ~NavigationPopup();
36
37 private:
38 JavaObjectWeakGlobalRef weak_jobject_;
39
40 CancelableTaskTracker cancelable_task_tracker_;
41
42 DISALLOW_COPY_AND_ASSIGN(NavigationPopup);
43 };
44
45 #endif // CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
OLDNEW
« 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