| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.content_shell; | 5 package org.chromium.content_shell; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.graphics.drawable.ClipDrawable; | 8 import android.graphics.drawable.ClipDrawable; |
| 9 import android.text.TextUtils; | 9 import android.text.TextUtils; |
| 10 import android.util.AttributeSet; | 10 import android.util.AttributeSet; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 222 } |
| 223 }); | 223 }); |
| 224 | 224 |
| 225 mNextButton = (ImageButton) findViewById(R.id.next); | 225 mNextButton = (ImageButton) findViewById(R.id.next); |
| 226 mNextButton.setOnClickListener(new OnClickListener() { | 226 mNextButton.setOnClickListener(new OnClickListener() { |
| 227 @Override | 227 @Override |
| 228 public void onClick(View v) { | 228 public void onClick(View v) { |
| 229 if (mNavigationController.canGoForward()) mNavigationController.
goForward(); | 229 if (mNavigationController.canGoForward()) mNavigationController.
goForward(); |
| 230 } | 230 } |
| 231 }); | 231 }); |
| 232 mStopButton = (ImageButton)findViewById(R.id.stop); | 232 mStopButton = (ImageButton) findViewById(R.id.stop); |
| 233 mStopButton.setOnClickListener(new OnClickListener() { | 233 mStopButton.setOnClickListener(new OnClickListener() { |
| 234 @Override | 234 @Override |
| 235 public void onClick(View v) { | 235 public void onClick(View v) { |
| 236 if (mLoading) mWebContents.stop(); | 236 if (mLoading) mWebContents.stop(); |
| 237 } | 237 } |
| 238 }); | 238 }); |
| 239 mReloadButton = (ImageButton)findViewById(R.id.reload); | 239 mReloadButton = (ImageButton) findViewById(R.id.reload); |
| 240 mReloadButton.setOnClickListener(new OnClickListener() { | 240 mReloadButton.setOnClickListener(new OnClickListener() { |
| 241 @Override | 241 @Override |
| 242 public void onClick(View v) { | 242 public void onClick(View v) { |
| 243 mNavigationController.reload(true); | 243 mNavigationController.reload(true); |
| 244 } | 244 } |
| 245 }); | 245 }); |
| 246 } | 246 } |
| 247 | 247 |
| 248 @SuppressWarnings("unused") | 248 @SuppressWarnings("unused") |
| 249 @CalledByNative | 249 @CalledByNative |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 Context.INPUT_METHOD_SERVICE); | 335 Context.INPUT_METHOD_SERVICE); |
| 336 if (visible) { | 336 if (visible) { |
| 337 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT); | 337 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT); |
| 338 } else { | 338 } else { |
| 339 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0); | 339 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0); |
| 340 } | 340 } |
| 341 } | 341 } |
| 342 | 342 |
| 343 private static native void nativeCloseShell(long shellPtr); | 343 private static native void nativeCloseShell(long shellPtr); |
| 344 } | 344 } |
| OLD | NEW |