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

Side by Side Diff: content/public/browser/web_contents.h

Issue 1411503005: Aura on Android: content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@auraclank_upstream_select_file
Patch Set: One more rebase Created 5 years, 1 month 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
« no previous file with comments | « content/public/browser/native_web_keyboard_event.h ('k') | no next file » | 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 // as soon as they are ready. 677 // as soon as they are ready.
678 virtual void ResumeLoadingCreatedWebContents() = 0; 678 virtual void ResumeLoadingCreatedWebContents() = 0;
679 679
680 #if defined(OS_ANDROID) 680 #if defined(OS_ANDROID)
681 // Requests to resume the current media session. 681 // Requests to resume the current media session.
682 virtual void ResumeMediaSession() = 0; 682 virtual void ResumeMediaSession() = 0;
683 // Requests to suspend the current media session. 683 // Requests to suspend the current media session.
684 virtual void SuspendMediaSession() = 0; 684 virtual void SuspendMediaSession() = 0;
685 // Requests to stop the current media session. 685 // Requests to stop the current media session.
686 virtual void StopMediaSession() = 0; 686 virtual void StopMediaSession() = 0;
687 687 #if !defined(USE_AURA)
688 CONTENT_EXPORT static WebContents* FromJavaWebContents( 688 CONTENT_EXPORT static WebContents* FromJavaWebContents(
689 jobject jweb_contents_android); 689 jobject jweb_contents_android);
690 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 690 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
691 #endif // !USE_AURA
691 #elif defined(OS_MACOSX) 692 #elif defined(OS_MACOSX)
692 // Allowing other views disables optimizations which assume that only a single 693 // Allowing other views disables optimizations which assume that only a single
693 // WebContents is present. 694 // WebContents is present.
694 virtual void SetAllowOtherViews(bool allow) = 0; 695 virtual void SetAllowOtherViews(bool allow) = 0;
695 696
696 // Returns true if other views are allowed, false otherwise. 697 // Returns true if other views are allowed, false otherwise.
697 virtual bool GetAllowOtherViews() = 0; 698 virtual bool GetAllowOtherViews() = 0;
698 #endif // OS_ANDROID 699 #endif // OS_ANDROID
699 700
700 private: 701 private:
701 // This interface should only be implemented inside content. 702 // This interface should only be implemented inside content.
702 friend class WebContentsImpl; 703 friend class WebContentsImpl;
703 WebContents() {} 704 WebContents() {}
704 }; 705 };
705 706
706 } // namespace content 707 } // namespace content
707 708
708 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 709 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/native_web_keyboard_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698