| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.chrome.browser.toolbar; | 5 package org.chromium.chrome.browser.toolbar; |
| 6 | 6 |
| 7 import org.chromium.base.CalledByNative; | 7 import org.chromium.base.CalledByNative; |
| 8 import org.chromium.content.browser.WebContents; | 8 import org.chromium.content_public.browser.WebContents; |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * Provides a way of accessing toolbar data and state. | 11 * Provides a way of accessing toolbar data and state. |
| 12 */ | 12 */ |
| 13 public class ToolbarModel { | 13 public class ToolbarModel { |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Delegate for providing additional information to the model. | 16 * Delegate for providing additional information to the model. |
| 17 */ | 17 */ |
| 18 public interface ToolbarModelDelegate { | 18 public interface ToolbarModelDelegate { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 if (mNativeToolbarModelAndroid == 0) return null; | 59 if (mNativeToolbarModelAndroid == 0) return null; |
| 60 return nativeGetCorpusChipText(mNativeToolbarModelAndroid); | 60 return nativeGetCorpusChipText(mNativeToolbarModelAndroid); |
| 61 } | 61 } |
| 62 | 62 |
| 63 private native long nativeInit(ToolbarModelDelegate delegate); | 63 private native long nativeInit(ToolbarModelDelegate delegate); |
| 64 private native void nativeDestroy(long nativeToolbarModelAndroid); | 64 private native void nativeDestroy(long nativeToolbarModelAndroid); |
| 65 private native String nativeGetSearchTerms(long nativeToolbarModelAndroid); | 65 private native String nativeGetSearchTerms(long nativeToolbarModelAndroid); |
| 66 private native String nativeGetQueryExtractionParam(long nativeToolbarModelA
ndroid); | 66 private native String nativeGetQueryExtractionParam(long nativeToolbarModelA
ndroid); |
| 67 private native String nativeGetCorpusChipText(long nativeToolbarModelAndroid
); | 67 private native String nativeGetCorpusChipText(long nativeToolbarModelAndroid
); |
| 68 } | 68 } |
| OLD | NEW |