summaryrefslogtreecommitdiff
path: root/chromium/ui/base/clipboard/clipboard_observer.h
blob: 3e3a2af7c9492c6fd1fb57414c084761cc0b2bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2016 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 UI_BASE_CLIPBOARD_CLIPBOARD_OBSERVER_H_
#define UI_BASE_CLIPBOARD_CLIPBOARD_OBSERVER_H_

#include "base/component_export.h"
#include "base/macros.h"
#include "build/build_config.h"

namespace ui {

// Observer that receives the notifications of clipboard events.
class COMPONENT_EXPORT(UI_BASE_CLIPBOARD) ClipboardObserver {
 public:
  // Override notified when clipboard data is changed.
  virtual void OnClipboardDataChanged();

#if defined(OS_CHROMEOS)
  // Override notified when clipboard data is read.
  virtual void OnClipboardDataRead();
#endif

 protected:
  virtual ~ClipboardObserver();
};

}  // namespace ui

#endif  // UI_BASE_CLIPBOARD_CLIPBOARD_OBSERVER_H_