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

Unified Diff: blimp/client/core/render_widget/blimp_document.cc

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 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: blimp/client/core/render_widget/blimp_document.cc
diff --git a/blimp/client/core/render_widget/blimp_document.cc b/blimp/client/core/render_widget/blimp_document.cc
deleted file mode 100644
index b6b5fe2e7d36ce9ca87f669a428d23e10af81904..0000000000000000000000000000000000000000
--- a/blimp/client/core/render_widget/blimp_document.cc
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2016 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 "blimp/client/core/render_widget/blimp_document.h"
-
-#include "base/command_line.h"
-#include "base/threading/thread_task_runner_handle.h"
-#include "blimp/client/core/compositor/blimp_compositor_dependencies.h"
-#include "blimp/client/core/input/blimp_input_manager.h"
-#include "blimp/client/core/render_widget/blimp_document_manager.h"
-#include "blimp/client/core/switches/blimp_client_switches.h"
-#include "cc/layers/layer.h"
-
-namespace blimp {
-namespace client {
-
-BlimpDocument::BlimpDocument(int document_id,
- BlimpCompositorDependencies* compositor_deps,
- BlimpDocumentManager* document_manager)
- : BlimpDocument(document_id,
- BlimpCompositor::Create(compositor_deps, this),
- compositor_deps,
- document_manager) {}
-
-BlimpDocument::BlimpDocument(int document_id,
- std::unique_ptr<BlimpCompositor> compositor,
- BlimpCompositorDependencies* compositor_deps,
- BlimpDocumentManager* document_manager)
- : document_id_(document_id),
- compositor_(std::move(compositor)),
- manager_(document_manager) {
- input_manager_ =
- BlimpInputManager::Create(this, base::ThreadTaskRunnerHandle::Get(),
- compositor_deps->GetCompositorTaskRunner(),
- compositor_->GetInputHandler());
-}
-
-BlimpDocument::~BlimpDocument() {
- compositor_.reset();
-
- // Destroy the old input manager state.
- // It is important to destroy the LayerTreeHost before destroying the input
- // manager as it has a reference to the cc::InputHandlerClient owned by the
- // BlimpInputManager.
- input_manager_.reset();
-}
-
-BlimpCompositor* BlimpDocument::GetCompositor() {
- return compositor_.get();
-}
-
-bool BlimpDocument::OnTouchEvent(const ui::MotionEvent& motion_event) {
- if (input_manager_)
- return input_manager_->OnTouchEvent(motion_event);
- return false;
-}
-
-void BlimpDocument::SendCompositorMessage(
- const cc::proto::CompositorMessage& message) {
- manager_->SendCompositorMessage(document_id_, message);
-}
-
-void BlimpDocument::SendWebGestureEvent(
- const blink::WebGestureEvent& gesture_event) {
- manager_->SendWebGestureEvent(document_id_, gesture_event);
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/core/render_widget/blimp_document.h ('k') | blimp/client/core/render_widget/blimp_document_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698