OLD | NEW |
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/native_widget_types.h" |
9 #include "ui/gfx/size.h" | 10 #include "ui/gfx/size.h" |
10 | 11 |
11 class Browser; | 12 class Browser; |
12 | 13 |
| 14 // Android does not support extensions, so this is just a stub. |
13 class ExtensionViewAndroid { | 15 class ExtensionViewAndroid { |
14 public: | 16 public: |
15 Browser* browser() const { return NULL; } | 17 Browser* browser() const { return NULL; } |
| 18 gfx::NativeView native_view() const { return NULL; } |
16 | 19 |
17 void ResizeDueToAutoResize(const gfx::Size& new_size); | 20 void ResizeDueToAutoResize(const gfx::Size& new_size); |
18 void RenderViewCreated(); | 21 void RenderViewCreated(); |
19 | 22 |
20 private: | 23 private: |
21 ExtensionViewAndroid() { } | 24 ExtensionViewAndroid() { } |
22 | 25 |
23 DISALLOW_COPY_AND_ASSIGN(ExtensionViewAndroid); | 26 DISALLOW_COPY_AND_ASSIGN(ExtensionViewAndroid); |
24 }; | 27 }; |
25 | 28 |
26 #endif // CHROME_BROWSER_UI_ANDROID_EXTENSIONS_EXTENSION_VIEW_ANDROID_H_ | 29 #endif // CHROME_BROWSER_UI_ANDROID_EXTENSIONS_EXTENSION_VIEW_ANDROID_H_ |
OLD | NEW |