Commit dc0b02ec authored by Sébastien Séguin-Gagnon's avatar Sébastien Séguin-Gagnon Committed by Commit Bot

[SH] Add common shared-highlighting metrics file to use on all platforms

Bug: 1135144
Change-Id: I061f9282ce17775b537f10ca2f81917a0b2224d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2448055Reviewed-by: default avatarCait Phillips <caitkp@chromium.org>
Commit-Queue: sebsg <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814197}
parent bb86e3cd
sebsg@chromium.org
# COMPONENT: UI>Browser>SharedHighlighting
# TEAM: chrome-shared-highlighting@google.com
\ No newline at end of file
Shared Highlighting
Shared Highlighting is a feature allowing users to generate and share links to specific parts of a web page, and to open these links.
When a Shared Highlighting link is opened, the page scrolls to and highlights the passage specified by the sender.
This feature is being developed across platforms. This component hosts the common code shared by all platforms.
For now, this mainly consists of metrics, but will encompass more parts of the feature in future milestones.
# Copyright 2020 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.
static_library("common") {
sources = [ "shared_highlighting_metrics.h" ]
}
// Copyright 2020 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.
#ifndef COMPONENTS_SHARED_HIGHLIGHTING_CORE_COMMON_SHARED_HIGHLIGHTING_METRICS_H_
#define COMPONENTS_SHARED_HIGHLIGHTING_CORE_COMMON_SHARED_HIGHLIGHTING_METRICS_H_
namespace shared_highlighting {
// Update corresponding |LinkGenerationError| in enums.xml.
enum LinkGenerationError {
kIncorrectSelector,
kNoRange,
kNoContext,
kContextExhausted,
kContextLimitReached,
kEmptySelection,
kMaxValue = kContextLimitReached
};
} // namespace shared_highlighting
#endif // COMPONENTS_SHARED_HIGHLIGHTING_CORE_COMMON_SHARED_HIGHLIGHTING_METRICS_H_
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment