Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / ui / views / open_pdf_in_reader_bubble_view.h
blobcde20b17e57f6397db8f6f02731dcbfbe6ae9be9
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_OPEN_PDF_IN_READER_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OPEN_PDF_IN_READER_BUBBLE_VIEW_H_
8 #include "ui/views/bubble/bubble_delegate.h"
9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/controls/link_listener.h"
12 class OpenPDFInReaderPromptDelegate;
14 namespace views {
15 class LabelButton;
18 class OpenPDFInReaderBubbleView : public views::BubbleDelegateView,
19 public views::ButtonListener,
20 public views::LinkListener {
21 public:
22 OpenPDFInReaderBubbleView(views::View* anchor_view,
23 OpenPDFInReaderPromptDelegate* model);
24 virtual ~OpenPDFInReaderBubbleView();
26 protected:
27 // views::BubbleDelegateView:
28 virtual void Init() OVERRIDE;
30 // views::ButtonListener:
31 virtual void ButtonPressed(views::Button* sender,
32 const ui::Event& event) OVERRIDE;
34 // views::LinkListener:
35 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
37 private:
38 // Weak pointer; owned by the PDFTabHelper of the currently active tab.
39 OpenPDFInReaderPromptDelegate* model_;
41 views::Link* open_in_reader_link_;
42 views::LabelButton* close_button_;
44 DISALLOW_COPY_AND_ASSIGN(OpenPDFInReaderBubbleView);
47 #endif // CHROME_BROWSER_UI_VIEWS_OPEN_PDF_IN_READER_BUBBLE_VIEW_H_