1 // Copyright 2015 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.chrome.browser.omnibox; 6 7 /** 8 * Listener to be notified on url focus changes. 9 */ 10 public interface UrlFocusChangeListener { 11 /** 12 * Triggered when the URL input field has gained or lost focus. 13 * @param hasFocus Whether the URL field has gained focus. 14 */ onUrlFocusChange(boolean hasFocus)15 void onUrlFocusChange(boolean hasFocus); 16 17 /** 18 * A notification that animations for focusing or unfocusing the input field has finished. 19 * @param hasFocus Whether the URL field has gained focus. 20 */ onUrlAnimationFinished(boolean hasFocus)21 default void onUrlAnimationFinished(boolean hasFocus) {}; 22 } 23