| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/views/controls/image_view.h" | 9 #include "ui/views/controls/image_view.h" |
| 10 #include "ui/views/widget/widget_observer.h" | 10 #include "ui/views/widget/widget_observer.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 OpenPDFInReaderView(); | 26 OpenPDFInReaderView(); |
| 27 ~OpenPDFInReaderView() override; | 27 ~OpenPDFInReaderView() override; |
| 28 | 28 |
| 29 void Update(content::WebContents* web_contents); | 29 void Update(content::WebContents* web_contents); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 void ShowBubble(); | 32 void ShowBubble(); |
| 33 | 33 |
| 34 // views::ImageView: | 34 // views::ImageView: |
| 35 void GetAccessibleState(ui::AXViewState* state) override; | 35 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 36 bool OnMousePressed(const ui::MouseEvent& event) override; | 36 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 37 void OnMouseReleased(const ui::MouseEvent& event) override; | 37 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 38 bool OnKeyPressed(const ui::KeyEvent& event) override; | 38 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 39 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 39 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 40 | 40 |
| 41 // views::WidgetObserver: | 41 // views::WidgetObserver: |
| 42 void OnWidgetDestroying(views::Widget* widget) override; | 42 void OnWidgetDestroying(views::Widget* widget) override; |
| 43 | 43 |
| 44 OpenPDFInReaderBubbleView* bubble_; | 44 OpenPDFInReaderBubbleView* bubble_; |
| 45 | 45 |
| 46 // Weak pointer; owned by the PDFWebContentsHelper of the currently active | 46 // Weak pointer; owned by the PDFWebContentsHelper of the currently active |
| 47 // tab. | 47 // tab. |
| 48 pdf::OpenPDFInReaderPromptClient* model_; | 48 pdf::OpenPDFInReaderPromptClient* model_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(OpenPDFInReaderView); | 50 DISALLOW_COPY_AND_ASSIGN(OpenPDFInReaderView); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_ | 53 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_ |
| OLD | NEW |