equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style license that can be |
|
3 // found in the LICENSE file. |
|
4 |
|
5 package org.chromium.sdk; |
|
6 |
|
7 /** |
|
8 * This interface is used by the SDK to report browser-related debug |
|
9 * events for a certain tab to the clients. |
|
10 */ |
|
11 public interface TabDebugEventListener { |
|
12 /** |
|
13 * Every {@code TabDebugEventListener} should aggregate |
|
14 * {@code DebugEventListener}. |
|
15 */ |
|
16 DebugEventListener getDebugEventListener(); |
|
17 |
|
18 /** |
|
19 * Reports a navigation event on the target tab. |
|
20 * |
|
21 * @param newUrl the new URL of the debugged tab |
|
22 */ |
|
23 void navigated(String newUrl); |
|
24 |
|
25 /** |
|
26 * Reports a closing event on the target tab. All following communications |
|
27 * with the associated tab are illegal. This call will be followed by |
|
28 * call to {@link DebugEventListener#disconnected()}. |
|
29 */ |
|
30 void closed(); |
|
31 } |