summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/omnibox/clipboard_utils.h
blob: 716be85f17a545e4080be5ea9b3750961b5e33d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2015 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.

// This file defines helper functions for accessing the clipboard.

#ifndef CHROME_BROWSER_UI_OMNIBOX_CLIPBOARD_UTILS_H_
#define CHROME_BROWSER_UI_OMNIBOX_CLIPBOARD_UTILS_H_

#include "base/strings/string16.h"

// Returns the current clipboard contents as a string that can be pasted in.
// In addition to just getting CF_UNICODETEXT out, this can also extract URLs
// from bookmarks on the clipboard.
base::string16 GetClipboardText();

#endif  // CHROME_BROWSER_UI_OMNIBOX_CLIPBOARD_UTILS_H_