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

Side by Side Diff: chrome/browser/ui/android/extensions/extension_view_android.h

Issue 10913243: extensions: Add ExtensionView interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: weak Created 8 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 | Annotate | Revision Log
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 CHROME_BROWSER_UI_ANDROID_EXTENSIONS_EXTENSION_VIEW_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_EXTENSIONS_EXTENSION_VIEW_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_EXTENSIONS_EXTENSION_VIEW_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_EXTENSIONS_EXTENSION_VIEW_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/gfx/size.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/extensions/extension_view.h"
10 11
11 class Browser; 12 class ExtensionViewAndroid : public ExtensionView {
12
13 class ExtensionViewAndroid {
14 public: 13 public:
15 Browser* browser() const { return NULL; } 14 ExtensionViewAndroid();
16 15 virtual ~ExtensionViewAndroid();
17 void ResizeDueToAutoResize(const gfx::Size& new_size);
18 void RenderViewCreated();
19 16
20 private: 17 private:
21 ExtensionViewAndroid() { } 18 // Overridden from ExtensionView:
19 virtual Browser* GetBrowser() OVERRIDE;
20 virtual const Browser* GetBrowser() const OVERRIDE;
21 virtual gfx::NativeView GetNativeView() OVERRIDE;
22 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE;
23 virtual void SetContainer(ExtensionViewContainer* container) OVERRIDE;
24 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE;
25 virtual void RenderViewCreated() OVERRIDE;
26 virtual void DidStopLoading() OVERRIDE;
27 virtual void WindowFrameChanged() OVERRIDE;
22 28
23 DISALLOW_COPY_AND_ASSIGN(ExtensionViewAndroid); 29 DISALLOW_COPY_AND_ASSIGN(ExtensionViewAndroid);
24 }; 30 };
25 31
26 #endif // CHROME_BROWSER_UI_ANDROID_EXTENSIONS_EXTENSION_VIEW_ANDROID_H_ 32 #endif // CHROME_BROWSER_UI_ANDROID_EXTENSIONS_EXTENSION_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_view_container.h ('k') | chrome/browser/ui/android/extensions/extension_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698