Commit bf36294b authored by mcasas's avatar mcasas Committed by Commit bot

RELAND: ImageCapture: move image_capture.mojom from media/mojo/interfaces/ to media/capture/mojo/

Original CL was reverted due to breaking webkit_tests in
chromium.webkit/builders/WebKit%20Mac10.9/builds/40056

This is due to a problem that already bit me :-)
build infra script to zip up mojom files wasn't updated,
ongoing in https://chromium-review.googlesource.com/c/414565/

Original CL description ------------------------------
ImageCapture: move image_capture.mojom to media/capture/mojo/

This CL moves image_capture.mojom from media/mojo/interfaces/ to
media/capture/mojo/ where it belongs logically speaking, and
updates BUILD.gns and include paths.

image_capture.mojom was in media/mojo/interfaces because
when it landed, media/capture/mojo was not existing.

BUG=518807
TEST=No code touched, if compile passes, it works
(but there's also content_browsertests).

TBR=xhwang@chromium.org for the removal in media/mojo/interfaces/BUILD.gn

Review-Url: https://codereview.chromium.org/2539543002
Cr-Commit-Position: refs/heads/master@{#434873}
parent 5ce3b357
......@@ -89,11 +89,11 @@ source_set("browser") {
"//ipc:mojom",
"//media",
"//media/capture",
"//media/capture/mojo:image_capture",
"//media/gpu/ipc/client",
"//media/midi",
"//media/midi:mojo_cpp_sources",
"//media/mojo/interfaces",
"//media/mojo/interfaces:image_capture",
"//mojo/common",
"//mojo/edk/system",
"//mojo/public/cpp/bindings",
......
......@@ -75,7 +75,6 @@ include_rules = [
"+third_party/WebKit/public/platform/mime_registry.mojom.h",
"+third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom.h",
"+third_party/WebKit/public/platform/modules/broadcastchannel/broadcast_channel.mojom.h",
"+third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom.h",
"+third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseException.h",
"+third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h",
"+third_party/WebKit/public/platform/modules/notifications/WebNotificationConstants.h",
......
......@@ -5,7 +5,7 @@
#ifndef CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_
#define CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_
#include "media/mojo/interfaces/image_capture.mojom.h"
#include "media/capture/mojo/image_capture.mojom.h"
namespace content {
......
......@@ -238,7 +238,7 @@ static_library("test_support") {
"//ipc:test_support",
"//media",
"//media/capture",
"//media/mojo/interfaces:image_capture",
"//media/capture/mojo:image_capture",
"//mojo/edk/system",
"//mojo/edk/test:test_support",
"//net:test_support",
......
......@@ -95,7 +95,7 @@ component("capture") {
"//base",
"//base:i18n",
"//media",
"//media/mojo/interfaces:image_capture",
"//media/capture/mojo:image_capture",
"//skia",
"//third_party/libyuv",
"//ui/display",
......@@ -178,7 +178,7 @@ test("capture_unittests") {
"//base/test:run_all_unittests",
"//base/test:test_support",
"//media/base:test_support",
"//media/mojo/interfaces:image_capture",
"//media/capture/mojo:image_capture",
"//testing/gmock",
"//testing/gtest",
"//ui/gfx:test_support",
......
......@@ -23,7 +23,7 @@ source_set("android") {
]
deps = [
":screen_capture_jni_headers",
"//media/mojo/interfaces:image_capture",
"//media/capture/mojo:image_capture",
"//third_party/libyuv",
]
}
......
......@@ -15,3 +15,9 @@ mojom("capture_types") {
"//ui/gfx/geometry/mojo",
]
}
mojom("image_capture") {
sources = [
"image_capture.mojom",
]
}
......@@ -27,7 +27,7 @@ source_set("android") {
]
deps = [
":capture_jni_headers",
"//media/mojo/interfaces:image_capture",
"//media/capture/mojo:image_capture",
"//third_party/libyuv",
]
}
......
......@@ -5,7 +5,7 @@
#ifndef MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
#define MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
#include "media/mojo/interfaces/image_capture.mojom.h"
#include "media/capture/mojo/image_capture.mojom.h"
namespace media {
......
......@@ -28,10 +28,10 @@
#include "build/build_config.h"
#include "media/base/video_frame.h"
#include "media/capture/capture_export.h"
#include "media/capture/mojo/image_capture.mojom.h"
#include "media/capture/video/scoped_result_callback.h"
#include "media/capture/video/video_capture_device_descriptor.h"
#include "media/capture/video_capture_types.h"
#include "media/mojo/interfaces/image_capture.mojom.h"
#include "mojo/public/cpp/bindings/array.h"
#include "ui/gfx/gpu_memory_buffer.h"
......
......@@ -33,12 +33,6 @@ mojom("interfaces") {
]
}
mojom("image_capture") {
sources = [
"image_capture.mojom",
]
}
mojom("remoting") {
sources = [
"remoting.mojom",
......
......@@ -48,8 +48,8 @@ source_set("lib") {
"//base",
"//media",
"//media/capture:capture",
"//media/capture/mojo:image_capture",
"//media/mojo/common:common",
"//media/mojo/interfaces:image_capture",
"//mojo/common:common_base",
"//services/service_manager/public/cpp",
"//services/video_capture/public/interfaces",
......
......@@ -2,7 +2,7 @@
let mockImageCaptureReady = define(
'mockImageCapture',
['media/mojo/interfaces/image_capture.mojom',
['media/capture/mojo/image_capture.mojom',
'mojo/public/js/bindings',
'mojo/public/js/connection',
'content/public/renderer/interfaces',
......
......@@ -14,6 +14,6 @@ blink_modules_sources("imagecapture") {
]
deps = [
"//media/mojo/interfaces:image_capture_blink",
"//media/capture/mojo:image_capture_blink",
]
}
include_rules = [
"+media/mojo/interfaces/image_capture.mojom-blink.h",
"+media/capture/mojo/image_capture.mojom-blink.h",
]
......@@ -9,7 +9,7 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventTarget.h"
#include "media/mojo/interfaces/image_capture.mojom-blink.h"
#include "media/capture/mojo/image_capture.mojom-blink.h"
#include "modules/EventTargetModules.h"
#include "modules/ModulesExport.h"
#include "platform/AsyncMethodRunner.h"
......
......@@ -6,7 +6,7 @@
#define PhotoCapabilities_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "media/mojo/interfaces/image_capture.mojom-blink.h"
#include "media/capture/mojo/image_capture.mojom-blink.h"
#include "modules/imagecapture/MediaSettingsRange.h"
#include "wtf/text/WTFString.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment