Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698