OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_ |
7 | 7 |
8 #include "ui/views/controls/image_view.h" | 8 #include "ui/views/controls/image_view.h" |
9 #include "ui/views/widget/widget_observer.h" | 9 #include "ui/views/widget/widget_observer.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 public: | 24 public: |
25 OpenPDFInReaderView(); | 25 OpenPDFInReaderView(); |
26 virtual ~OpenPDFInReaderView(); | 26 virtual ~OpenPDFInReaderView(); |
27 | 27 |
28 void Update(content::WebContents* web_contents); | 28 void Update(content::WebContents* web_contents); |
29 | 29 |
30 private: | 30 private: |
31 void ShowBubble(); | 31 void ShowBubble(); |
32 | 32 |
33 // views::ImageView: | 33 // views::ImageView: |
34 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 34 virtual void GetAccessibleState(ui::AXViewState* state) override; |
35 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 35 virtual bool OnMousePressed(const ui::MouseEvent& event) override; |
36 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 36 virtual void OnMouseReleased(const ui::MouseEvent& event) override; |
37 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 37 virtual bool OnKeyPressed(const ui::KeyEvent& event) override; |
38 | 38 |
39 // views::WidgetObserver: | 39 // views::WidgetObserver: |
40 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; | 40 virtual void OnWidgetDestroying(views::Widget* widget) override; |
41 | 41 |
42 OpenPDFInReaderBubbleView* bubble_; | 42 OpenPDFInReaderBubbleView* bubble_; |
43 | 43 |
44 // Weak pointer; owned by the PDFWebContentsHelper of the currently active | 44 // Weak pointer; owned by the PDFWebContentsHelper of the currently active |
45 // tab. | 45 // tab. |
46 pdf::OpenPDFInReaderPromptClient* model_; | 46 pdf::OpenPDFInReaderPromptClient* model_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(OpenPDFInReaderView); | 48 DISALLOW_COPY_AND_ASSIGN(OpenPDFInReaderView); |
49 }; | 49 }; |
50 | 50 |
51 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_ | 51 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_ |
OLD | NEW |