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

Side by Side Diff: blimp/client/public/contents/blimp_contents.h

Issue 2292723003: Move remaining Blimp feature code to core. (Closed)
Patch Set: Fix build break Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BLIMP_CLIENT_PUBLIC_CONTENTS_BLIMP_CONTENTS_H_ 5 #ifndef BLIMP_CLIENT_PUBLIC_CONTENTS_BLIMP_CONTENTS_H_
6 #define BLIMP_CLIENT_PUBLIC_CONTENTS_BLIMP_CONTENTS_H_ 6 #define BLIMP_CLIENT_PUBLIC_CONTENTS_BLIMP_CONTENTS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 21 matching lines...) Expand all
32 // to this BlimpContents. 32 // to this BlimpContents.
33 virtual BlimpNavigationController& GetNavigationController() = 0; 33 virtual BlimpNavigationController& GetNavigationController() = 0;
34 34
35 // Enables adding and removing observers to this BlimpContents. 35 // Enables adding and removing observers to this BlimpContents.
36 virtual void AddObserver(BlimpContentsObserver* observer) = 0; 36 virtual void AddObserver(BlimpContentsObserver* observer) = 0;
37 virtual void RemoveObserver(BlimpContentsObserver* observer) = 0; 37 virtual void RemoveObserver(BlimpContentsObserver* observer) = 0;
38 38
39 // Returns the native view that holds the contents of this tab. 39 // Returns the native view that holds the contents of this tab.
40 virtual gfx::NativeView GetNativeView() = 0; 40 virtual gfx::NativeView GetNativeView() = 0;
41 41
42 // Will cause this BlimpContents and the remote contents to show and start or
43 // stop rendering content respectively.
44 virtual void Show() = 0;
45 virtual void Hide() = 0;
46
42 #if defined(OS_ANDROID) 47 #if defined(OS_ANDROID)
43 // Returns a Java object of the type BlimpContents for the given 48 // Returns a Java object of the type BlimpContents for the given
44 // BlimpContents. 49 // BlimpContents.
45 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; 50 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0;
46 #endif 51 #endif
47 52
48 protected: 53 protected:
49 BlimpContents() {} 54 BlimpContents() {}
50 55
51 private: 56 private:
52 DISALLOW_COPY_AND_ASSIGN(BlimpContents); 57 DISALLOW_COPY_AND_ASSIGN(BlimpContents);
53 }; 58 };
54 59
55 } // namespace client 60 } // namespace client
56 } // namespace blimp 61 } // namespace blimp
57 62
58 #endif // BLIMP_CLIENT_PUBLIC_CONTENTS_BLIMP_CONTENTS_H_ 63 #endif // BLIMP_CLIENT_PUBLIC_CONTENTS_BLIMP_CONTENTS_H_
OLDNEW
« no previous file with comments | « blimp/client/public/blimp_client_context.h ('k') | blimp/client/session/blimp_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698