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

Side by Side Diff: chrome/browser/android/chrome_web_contents_delegate_android.h

Issue 161113002: Fix pushState causing stop/reload button and favicon to flicker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/android/chrome_web_contents_delegate_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 19 matching lines...) Expand all
30 // Chromium Android specific WebContentsDelegate. 30 // Chromium Android specific WebContentsDelegate.
31 // Should contain any WebContentsDelegate implementations required by 31 // Should contain any WebContentsDelegate implementations required by
32 // the Chromium Android port but not to be shared with WebView. 32 // the Chromium Android port but not to be shared with WebView.
33 class ChromeWebContentsDelegateAndroid 33 class ChromeWebContentsDelegateAndroid
34 : public web_contents_delegate_android::WebContentsDelegateAndroid, 34 : public web_contents_delegate_android::WebContentsDelegateAndroid,
35 public content::NotificationObserver { 35 public content::NotificationObserver {
36 public: 36 public:
37 ChromeWebContentsDelegateAndroid(JNIEnv* env, jobject obj); 37 ChromeWebContentsDelegateAndroid(JNIEnv* env, jobject obj);
38 virtual ~ChromeWebContentsDelegateAndroid(); 38 virtual ~ChromeWebContentsDelegateAndroid();
39 39
40 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 40 virtual void LoadingStateChanged(content::WebContents* source,
41 bool to_different_document) OVERRIDE;
41 virtual void RunFileChooser(content::WebContents* web_contents, 42 virtual void RunFileChooser(content::WebContents* web_contents,
42 const content::FileChooserParams& params) 43 const content::FileChooserParams& params)
43 OVERRIDE; 44 OVERRIDE;
44 virtual void CloseContents(content::WebContents* web_contents) OVERRIDE; 45 virtual void CloseContents(content::WebContents* web_contents) OVERRIDE;
45 virtual void FindReply(content::WebContents* web_contents, 46 virtual void FindReply(content::WebContents* web_contents,
46 int request_id, 47 int request_id,
47 int number_of_matches, 48 int number_of_matches,
48 const gfx::Rect& selection_rect, 49 const gfx::Rect& selection_rect,
49 int active_match_ordinal, 50 int active_match_ordinal,
50 bool final_update) OVERRIDE; 51 bool final_update) OVERRIDE;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 content::NotificationRegistrar notification_registrar_; 90 content::NotificationRegistrar notification_registrar_;
90 }; 91 };
91 92
92 // Register the native methods through JNI. 93 // Register the native methods through JNI.
93 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); 94 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env);
94 95
95 } // namespace android 96 } // namespace android
96 } // namespace chrome 97 } // namespace chrome
97 98
98 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 99 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/chrome_web_contents_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698