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

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: Created 5 years, 2 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 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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 // Requests the renderer to exit fullscreen. 665 // Requests the renderer to exit fullscreen.
666 virtual void ExitFullscreen() = 0; 666 virtual void ExitFullscreen() = 0;
667 667
668 // Unblocks requests from renderer for a newly created window. This is 668 // Unblocks requests from renderer for a newly created window. This is
669 // used in showCreatedWindow() or sometimes later in cases where 669 // used in showCreatedWindow() or sometimes later in cases where
670 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests 670 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests
671 // should not yet be resumed. Then the client is responsible for calling this 671 // should not yet be resumed. Then the client is responsible for calling this
672 // as soon as they are ready. 672 // as soon as they are ready.
673 virtual void ResumeLoadingCreatedWebContents() = 0; 673 virtual void ResumeLoadingCreatedWebContents() = 0;
674 674
675 #if defined(OS_ANDROID) 675 #if defined(OS_ANDROID) && !defined(USE_AURA)
676 // Requests to resume the current media session. 676 // Requests to resume the current media session.
677 virtual void ResumeMediaSession() = 0; 677 virtual void ResumeMediaSession() = 0;
678 // Requests to suspend the current media session. 678 // Requests to suspend the current media session.
679 virtual void SuspendMediaSession() = 0; 679 virtual void SuspendMediaSession() = 0;
680 // Requests to stop the current media session. 680 // Requests to stop the current media session.
681 virtual void StopMediaSession() = 0; 681 virtual void StopMediaSession() = 0;
682 682
683 CONTENT_EXPORT static WebContents* FromJavaWebContents( 683 CONTENT_EXPORT static WebContents* FromJavaWebContents(
684 jobject jweb_contents_android); 684 jobject jweb_contents_android);
685 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 685 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
686 #elif defined(OS_MACOSX) 686 #elif defined(OS_MACOSX)
687 // Allowing other views disables optimizations which assume that only a single 687 // Allowing other views disables optimizations which assume that only a single
688 // WebContents is present. 688 // WebContents is present.
689 virtual void SetAllowOtherViews(bool allow) = 0; 689 virtual void SetAllowOtherViews(bool allow) = 0;
690 690
691 // Returns true if other views are allowed, false otherwise. 691 // Returns true if other views are allowed, false otherwise.
692 virtual bool GetAllowOtherViews() = 0; 692 virtual bool GetAllowOtherViews() = 0;
693 #endif // OS_ANDROID 693 #endif // OS_ANDROID
694 694
695 private: 695 private:
696 // This interface should only be implemented inside content. 696 // This interface should only be implemented inside content.
697 friend class WebContentsImpl; 697 friend class WebContentsImpl;
698 WebContents() {} 698 WebContents() {}
699 }; 699 };
700 700
701 } // namespace content 701 } // namespace content
702 702
703 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 703 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698