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

Unified Diff: components/web_contents_delegate_android/color_chooser_android.cc

Issue 11823046: Move content/components/web_contents_delegate_android to components/web_contents_delegate_android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (win7_aura so slow!!) Created 7 years, 11 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: components/web_contents_delegate_android/color_chooser_android.cc
diff --git a/content/components/web_contents_delegate_android/color_chooser_android.cc b/components/web_contents_delegate_android/color_chooser_android.cc
similarity index 83%
rename from content/components/web_contents_delegate_android/color_chooser_android.cc
rename to components/web_contents_delegate_android/color_chooser_android.cc
index 34ab4f00e80c2d8c9dd2c8ad1602640050d33904..6e4c298fc7bf16a1e01092965eea5855d0d42006 100644
--- a/content/components/web_contents_delegate_android/color_chooser_android.cc
+++ b/components/web_contents_delegate_android/color_chooser_android.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/components/web_contents_delegate_android/color_chooser_android.h"
+#include "components/web_contents_delegate_android/color_chooser_android.h"
#include "content/public/browser/android/content_view_core.h"
#include "content/public/browser/web_contents.h"
@@ -10,13 +10,22 @@
namespace content {
+ColorChooser* ColorChooser::Create(
+ int identifier, WebContents* tab, SkColor initial_color) {
+ return new components::ColorChooserAndroid(identifier, tab, initial_color);
+}
+
+} // namespace content
+
+namespace components {
+
ColorChooserAndroid::ColorChooserAndroid(int identifier,
content::WebContents* tab,
SkColor initial_color)
: ColorChooser::ColorChooser(identifier),
content::WebContentsObserver(tab) {
JNIEnv* env = AttachCurrentThread();
- ContentViewCore* content_view_core = tab->GetContentNativeView();
+ content::ContentViewCore* content_view_core = tab->GetContentNativeView();
DCHECK(content_view_core);
j_color_chooser_.Reset(Java_ColorChooserAndroid_createColorChooserAndroid(
@@ -47,11 +56,6 @@ void ColorChooserAndroid::OnColorChosen(JNIEnv* env, jobject obj, jint color) {
web_contents()->DidEndColorChooser(identifier());
}
-content::ColorChooser* content::ColorChooser::Create(
- int identifier, content::WebContents* tab, SkColor initial_color) {
- return new ColorChooserAndroid(identifier, tab, initial_color);
-}
-
// ----------------------------------------------------------------------------
// Native JNI methods
// ----------------------------------------------------------------------------
@@ -59,4 +63,4 @@ bool RegisterColorChooserAndroid(JNIEnv* env) {
return RegisterNativesImpl(env);
}
-} // namespace content
+} // namespace components

Powered by Google App Engine
This is Rietveld 408576698