OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
6 | 6 |
7 import android.os.Handler; | 7 import android.os.Handler; |
8 import android.os.Message; | 8 import android.os.Message; |
9 import android.util.Log; | 9 import android.util.Log; |
10 import android.view.KeyEvent; | 10 import android.view.KeyEvent; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 return mContentsClient.onConsoleMessage( | 103 return mContentsClient.onConsoleMessage( |
104 new ConsoleMessage(message, sourceId, lineNumber, messageLevel))
; | 104 new ConsoleMessage(message, sourceId, lineNumber, messageLevel))
; |
105 } | 105 } |
106 | 106 |
107 @Override | 107 @Override |
108 public void onUpdateUrl(String url) { | 108 public void onUpdateUrl(String url) { |
109 // TODO: implement | 109 // TODO: implement |
110 } | 110 } |
111 | 111 |
112 @Override | 112 @Override |
113 public void openNewTab(String url, String extraHeaders, byte[] postData, int
disposition) { | 113 public void openNewTab(String url, String extraHeaders, byte[] postData, int
disposition, |
| 114 boolean isRendererInitiated) { |
114 // This is only called in chrome layers. | 115 // This is only called in chrome layers. |
115 assert false; | 116 assert false; |
116 } | 117 } |
117 | 118 |
118 @Override | 119 @Override |
119 public void closeContents() { | 120 public void closeContents() { |
120 mContentsClient.onCloseWindow(); | 121 mContentsClient.onCloseWindow(); |
121 } | 122 } |
122 | 123 |
123 @Override | 124 @Override |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 @Override | 181 @Override |
181 public boolean addNewContents(boolean isDialog, boolean isUserGesture) { | 182 public boolean addNewContents(boolean isDialog, boolean isUserGesture) { |
182 return mContentsClient.onCreateWindow(isDialog, isUserGesture); | 183 return mContentsClient.onCreateWindow(isDialog, isUserGesture); |
183 } | 184 } |
184 | 185 |
185 @Override | 186 @Override |
186 public void activateContents() { | 187 public void activateContents() { |
187 mContentsClient.onRequestFocus(); | 188 mContentsClient.onRequestFocus(); |
188 } | 189 } |
189 } | 190 } |
OLD | NEW |