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

Unified Diff: components/web_view/test_runner/test_runner_application_delegate.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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_view/test_runner/test_runner_application_delegate.h
diff --git a/components/web_view/test_runner/test_runner_application_delegate.h b/components/web_view/test_runner/test_runner_application_delegate.h
deleted file mode 100644
index fc1d3d9eb0b218f5829daf8bec4e24a3f6705c00..0000000000000000000000000000000000000000
--- a/components/web_view/test_runner/test_runner_application_delegate.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef COMPONENTS_WEB_VIEW__TEST_RUNNER_TEST_RUNNER_APPLICATION_DELEGATE_H_
-#define COMPONENTS_WEB_VIEW__TEST_RUNNER_TEST_RUNNER_APPLICATION_DELEGATE_H_
-
-#include <stdint.h>
-
-#include "base/command_line.h"
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "components/mus/public/cpp/window_tree_delegate.h"
-#include "components/mus/public/interfaces/window_tree_host.mojom.h"
-#include "components/test_runner/test_info_extractor.h"
-#include "components/web_view/public/cpp/web_view.h"
-#include "components/web_view/public/interfaces/web_view.mojom.h"
-#include "components/web_view/test_runner/public/interfaces/layout_test_runner.mojom.h"
-#include "mojo/common/weak_binding_set.h"
-#include "mojo/shell/public/cpp/interface_factory.h"
-#include "mojo/shell/public/cpp/shell_client.h"
-
-class GURL;
-
-namespace web_view {
-
-class TestRunnerApplicationDelegate
- : public mojo::ShellClient,
- public mus::WindowTreeDelegate,
- public mojom::WebViewClient,
- public LayoutTestRunner,
- public mojo::InterfaceFactory<LayoutTestRunner> {
- public:
- TestRunnerApplicationDelegate();
- ~TestRunnerApplicationDelegate() override;
-
- private:
- void LaunchURL(const GURL& test_url);
- void Terminate();
-
- // mojo::ShellClient:
- void Initialize(mojo::Shell* shell, const std::string& url,
- uint32_t id) override;
- bool AcceptConnection(mojo::Connection* connection) override;
-
- // mus::WindowTreeDelegate:
- void OnEmbed(mus::Window* root) override;
- void OnConnectionLost(mus::WindowTreeConnection* connection) override;
-
- // mojom::WebViewClient:
- void TopLevelNavigateRequest(mojo::URLRequestPtr request) override;
- void TopLevelNavigationStarted(const mojo::String& url) override;
- void LoadingStateChanged(bool is_loading, double progress) override;
- void BackForwardChanged(mojom::ButtonState back_button,
- mojom::ButtonState forward_button) override;
- void TitleChanged(const mojo::String& title) override;
- void FindInPageMatchCountUpdated(int32_t request_id,
- int32_t count,
- bool final_update) override {}
- void FindInPageSelectionUpdated(int32_t request_id,
- int32_t active_match_ordinal) override {}
-
- // LayoutTestRunner:
- void TestFinished() override;
-
- // mojo::InterfaceFactory<LayoutTestRunner>:
- void Create(mojo::Connection* connection,
- mojo::InterfaceRequest<LayoutTestRunner> request) override;
-
- mojo::Shell* shell_;
- mus::mojom::WindowTreeHostPtr host_;
-
- mus::Window* root_;
- mus::Window* content_;
- scoped_ptr<WebView> web_view_;
-
- scoped_ptr<test_runner::TestInfoExtractor> test_extractor_;
-
- mojo::WeakBindingSet<LayoutTestRunner> layout_test_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(TestRunnerApplicationDelegate);
-};
-
-} // namespace web_view
-
-#endif // COMPONENTS_WEB_VIEW__TEST_RUNNER_TEST_RUNNER_APPLICATION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698