#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_
#include "ui/views/controls/image_view.h"
#include "ui/views/widget/widget_observer.h"
class LocationBarView;
class OpenPDFInReaderBubbleView;
class OpenPDFInReaderPromptDelegate;
namespace content {
class WebContents;
}
class OpenPDFInReaderView : public views::ImageView,
public views::WidgetObserver {
public:
explicit OpenPDFInReaderView(LocationBarView* location_bar_view);
virtual ~OpenPDFInReaderView();
void Update(content::WebContents* web_contents);
private:
void ShowBubble();
virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
LocationBarView* location_bar_view_;
OpenPDFInReaderBubbleView* bubble_;
OpenPDFInReaderPromptDelegate* model_;
DISALLOW_COPY_AND_ASSIGN(OpenPDFInReaderView);
};
#endif