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

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

Issue 2672463003: Remove dead code since PDFWebContentsHelper::ShowOpenInReaderPrompt isn't called anymore. (Closed)
Patch Set: Created 3 years, 10 months 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
(Empty)
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.
4
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_
7
8 #include "base/macros.h"
9 #include "ui/views/controls/image_view.h"
10 #include "ui/views/widget/widget_observer.h"
11
12 class OpenPDFInReaderBubbleView;
13
14 namespace content {
15 class WebContents;
16 }
17
18 namespace pdf {
19 class OpenPDFInReaderPromptClient;
20 }
21
22 // A Page Action image view for the "Open PDF in Reader" bubble.
23 class OpenPDFInReaderView : public views::ImageView,
24 public views::WidgetObserver {
25 public:
26 OpenPDFInReaderView();
27 ~OpenPDFInReaderView() override;
28
29 void Update(content::WebContents* web_contents);
30
31 private:
32 void ShowBubble();
33
34 // views::ImageView:
35 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
36 bool OnMousePressed(const ui::MouseEvent& event) override;
37 void OnMouseReleased(const ui::MouseEvent& event) override;
38 bool OnKeyPressed(const ui::KeyEvent& event) override;
39 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
40
41 // views::WidgetObserver:
42 void OnWidgetDestroying(views::Widget* widget) override;
43
44 OpenPDFInReaderBubbleView* bubble_;
45
46 // Weak pointer; owned by the PDFWebContentsHelper of the currently active
47 // tab.
48 pdf::OpenPDFInReaderPromptClient* model_;
49
50 DISALLOW_COPY_AND_ASSIGN(OpenPDFInReaderView);
51 };
52
53 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_OPEN_PDF_IN_READER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698