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

Side by Side Diff: android_webview/native/aw_web_contents_delegate.h

Issue 865613002: Reduce duplicated code in AwWebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed one line Created 5 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
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 ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "components/web_contents_delegate_android/web_contents_delegate_android .h" 10 #include "components/web_contents_delegate_android/web_contents_delegate_android .h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const content::MediaStreamRequest& request, 54 const content::MediaStreamRequest& request,
55 const content::MediaResponseCallback& callback) override; 55 const content::MediaResponseCallback& callback) override;
56 virtual void EnterFullscreenModeForTab(content::WebContents* web_contents, 56 virtual void EnterFullscreenModeForTab(content::WebContents* web_contents,
57 const GURL& origin) override; 57 const GURL& origin) override;
58 virtual void ExitFullscreenModeForTab( 58 virtual void ExitFullscreenModeForTab(
59 content::WebContents* web_contents) override; 59 content::WebContents* web_contents) override;
60 virtual bool IsFullscreenForTabOrPending( 60 virtual bool IsFullscreenForTabOrPending(
61 const content::WebContents* web_contents) const override; 61 const content::WebContents* web_contents) const override;
62 62
63 private: 63 private:
64 void ToggleFullscreenModeForTab(content::WebContents* web_contents,
65 bool enter_fullscreen);
66 bool is_fullscreen_; 64 bool is_fullscreen_;
67 }; 65 };
68 66
69 bool RegisterAwWebContentsDelegate(JNIEnv* env); 67 bool RegisterAwWebContentsDelegate(JNIEnv* env);
70 68
71 } // namespace android_webview 69 } // namespace android_webview
72 70
73 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 71 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698