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

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

Issue 2241623002: blimp: Move compositing, input and render widget feature to client/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments from #7 Created 4 years, 4 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 "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace blimp { 12 namespace blimp {
13 namespace client { 13 namespace client {
14 14
15 class BlimpContentsObserver; 15 class BlimpContentsObserver;
16 class BlimpNavigationController; 16 class BlimpNavigationController;
17 17
18 // BlimpContents is the core class in blimp client which is responsible for 18 // BlimpContents is the core class in blimp client which is responsible for
19 // rendering web pages in a rectangular area. The interaction with between the 19 // rendering web pages in a rectangular area. The interaction with between the
20 // client and engine is encapsulated behind this interface through the use of 20 // client and engine is encapsulated behind this interface through the use of
21 // the navigation controller. Each BlimpContents has exactly one 21 // the navigation controller. Each BlimpContents has exactly one
22 // BlimpNavigationController which can be used to load URLs, navigate 22 // BlimpNavigationController which can be used to load URLs, navigate
23 // backwards/forward etc. See blimp_navigation_controller.h for more details. 23 // backwards/forward etc. See blimp_navigation_controller.h for more details.
24 class BlimpContents : public base::SupportsUserData { 24 class BlimpContents : public base::SupportsUserData {
25 public: 25 public:
26 // Retrives the navigation controller that controls all navigation related 26 // Retrives the navigation controller that controls all navigation related
27 // to this BlimpContents. 27 // to this BlimpContents.
28 virtual BlimpNavigationController& GetNavigationController() = 0; 28 virtual BlimpNavigationController& GetNavigationController() = 0;
29 29
30 virtual void SetVisible(bool visible) = 0;
31
30 // Enables adding and removing observers to this BlimpContents. 32 // Enables adding and removing observers to this BlimpContents.
31 virtual void AddObserver(BlimpContentsObserver* observer) = 0; 33 virtual void AddObserver(BlimpContentsObserver* observer) = 0;
32 virtual void RemoveObserver(BlimpContentsObserver* observer) = 0; 34 virtual void RemoveObserver(BlimpContentsObserver* observer) = 0;
33 35
34 protected: 36 protected:
35 BlimpContents() {} 37 BlimpContents() {}
36 38
37 private: 39 private:
38 DISALLOW_COPY_AND_ASSIGN(BlimpContents); 40 DISALLOW_COPY_AND_ASSIGN(BlimpContents);
39 }; 41 };
40 42
41 } // namespace client 43 } // namespace client
42 } // namespace blimp 44 } // namespace blimp
43 45
44 #endif // BLIMP_CLIENT_PUBLIC_CONTENTS_BLIMP_CONTENTS_H_ 46 #endif // BLIMP_CLIENT_PUBLIC_CONTENTS_BLIMP_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698