summaryrefslogtreecommitdiff
path: root/chromium/components/bubble/bubble_ui.h
blob: 7d82dc72b5f79ffb8f0de19bb83de2d611c1d22b (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
// 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.

#ifndef COMPONENTS_BUBBLE_BUBBLE_UI_H_
#define COMPONENTS_BUBBLE_BUBBLE_UI_H_

#include "components/bubble/bubble_reference.h"

class BubbleUi {
 public:
  virtual ~BubbleUi() {}

  // Should display the bubble UI. BubbleReference is passed in so that the
  // bubble UI can notify the BubbleManager if it needs to close.
  virtual void Show(BubbleReference bubble_reference) = 0;

  // Should close the bubble UI.
  virtual void Close() = 0;

  // Should update the bubble UI's position.
  // Important to verify that an anchor is still available.
  // ex: fullscreen might not have a location bar in views.
  virtual void UpdateAnchorPosition() = 0;
};

#endif  // COMPONENTS_BUBBLE_BUBBLE_UI_H_