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

Unified Diff: content/shell/shell_android.cc

Issue 10035034: Implement the skeleton of an android content shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed drawable png as it was checked in separately. Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/shell_android.cc
diff --git a/content/shell/shell_android.cc b/content/shell/shell_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..67d7f884e6a0ddce27bc408a557f58c23748ee0f
--- /dev/null
+++ b/content/shell/shell_android.cc
@@ -0,0 +1,49 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/shell/shell.h"
+
+#include "base/logging.h"
+#include "base/string_piece.h"
+#include "content/shell/android/shell_manager.h"
+
+namespace content {
+
+base::StringPiece Shell::PlatformResourceProvider(int key) {
+ return base::StringPiece();
+}
+
+void Shell::PlatformInitialize() {
+}
+
+void Shell::PlatformCleanUp() {
+}
+
+void Shell::PlatformEnableUIControl(UIControl control, bool is_enabled) {
+}
+
+void Shell::PlatformSetAddressBarURL(const GURL& url) {
+}
+
+void Shell::PlatformSetIsLoading(bool loading) {
+}
+
+void Shell::PlatformCreateWindow(int width, int height) {
+ shell_view_.reset(CreateShellView());
+}
+
+void Shell::PlatformSetContents() {
+ shell_view_->InitFromTabContents(web_contents_.get());
+}
+
+void Shell::PlatformResizeSubViews() {
+ // Not needed; subviews are bound.
+}
+
+void Shell::Close() {
+ // TODO(tedchoc): Implement Close method for android shell
+ NOTIMPLEMENTED();
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698