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

Unified Diff: chrome/test/chromedriver/javascript_dialog_manager.h

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 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: chrome/test/chromedriver/javascript_dialog_manager.h
diff --git a/chrome/test/chromedriver/javascript_dialog_manager.h b/chrome/test/chromedriver/javascript_dialog_manager.h
deleted file mode 100644
index a5684c67c8efa71342c848be79d10f55a9f854e9..0000000000000000000000000000000000000000
--- a/chrome/test/chromedriver/javascript_dialog_manager.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2013 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 CHROME_TEST_CHROMEDRIVER_JAVASCRIPT_DIALOG_MANAGER_H_
-#define CHROME_TEST_CHROMEDRIVER_JAVASCRIPT_DIALOG_MANAGER_H_
-
-#include <list>
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/test/chromedriver/devtools_event_listener.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-class DevToolsClient;
-class Status;
-
-// Tracks the opening and closing of JavaScript dialogs (e.g., alerts).
-class JavaScriptDialogManager : public DevToolsEventListener {
- public:
- explicit JavaScriptDialogManager(DevToolsClient* client);
- virtual ~JavaScriptDialogManager();
-
- bool IsDialogOpen();
-
- Status GetDialogMessage(std::string* message);
-
- Status HandleDialog(bool accept, const std::string& text);
-
- // Overridden from DevToolsEventListener:
- virtual Status OnConnected() OVERRIDE;
- virtual void OnEvent(const std::string& method,
- const base::DictionaryValue& params) OVERRIDE;
-
- private:
- DevToolsClient* client_;
-
- // The queue of unhandled dialogs. This may be greater than 1 in rare
- // cases. E.g., if the page shows an alert but before the manager received
- // the event, a script was injected via Inspector that triggered an alert.
- std::list<std::string> unhandled_dialog_queue_;
-
- DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogManager);
-};
-
-#endif // CHROME_TEST_CHROMEDRIVER_JAVASCRIPT_DIALOG_MANAGER_H_
« no previous file with comments | « chrome/test/chromedriver/frame_tracker_unittest.cc ('k') | chrome/test/chromedriver/javascript_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698