blob: 649f006aab839a7b7f45c04738c917e3a2947802 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Foundation/Foundation.h>
// Protocol for vending an x offset for a string.
@protocol LocationBarOffsetProvider<NSObject>
// Provides an offset for a given string in the callee's coordinates, if any.
// Returns a default value (based on callee's font) if the |string| is not a
// substring of the string displayed by callee.
- (CGFloat)xOffsetForString:(NSString*)string;