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

Side by Side Diff: chrome/browser/chromeos/accessibility/chromevox_panel.h

Issue 1837053003: Accessibility manager shouldn't try to access ash Shelf from login screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update panel height in SetProfile instead Created 4 years, 8 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_ 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 class ChromeVoxPanel : public views::WidgetDelegate, 24 class ChromeVoxPanel : public views::WidgetDelegate,
25 public gfx::DisplayObserver { 25 public gfx::DisplayObserver {
26 public: 26 public:
27 explicit ChromeVoxPanel(content::BrowserContext* browser_context); 27 explicit ChromeVoxPanel(content::BrowserContext* browser_context);
28 ~ChromeVoxPanel() override; 28 ~ChromeVoxPanel() override;
29 29
30 aura::Window* GetRootWindow(); 30 aura::Window* GetRootWindow();
31 31
32 void Close(); 32 void Close();
33 void DidFirstVisuallyNonEmptyPaint(); 33 void DidFirstVisuallyNonEmptyPaint();
34 void UpdatePanelHeight();
34 void EnterFullscreen(); 35 void EnterFullscreen();
35 void ExitFullscreen(); 36 void ExitFullscreen();
36 void DisableSpokenFeedback(); 37 void DisableSpokenFeedback();
37 void Focus(); 38 void Focus();
38 39
39 // WidgetDelegate overrides. 40 // WidgetDelegate overrides.
40 const views::Widget* GetWidget() const override; 41 const views::Widget* GetWidget() const override;
41 views::Widget* GetWidget() override; 42 views::Widget* GetWidget() override;
42 void DeleteDelegate() override; 43 void DeleteDelegate() override;
43 views::View* GetContentsView() override; 44 views::View* GetContentsView() override;
44 45
45 // DisplayObserver overrides; 46 // DisplayObserver overrides;
46 void OnDisplayAdded(const gfx::Display& new_display) override {} 47 void OnDisplayAdded(const gfx::Display& new_display) override {}
47 void OnDisplayRemoved(const gfx::Display& old_display) override {} 48 void OnDisplayRemoved(const gfx::Display& old_display) override {}
48 void OnDisplayMetricsChanged(const gfx::Display& display, 49 void OnDisplayMetricsChanged(const gfx::Display& display,
49 uint32_t changed_metrics) override; 50 uint32_t changed_metrics) override;
50 51
51 private: 52 private:
52 void UpdateWidgetBounds(); 53 void UpdateWidgetBounds();
53 54
54 views::Widget* widget_; 55 views::Widget* widget_;
55 scoped_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_; 56 scoped_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_;
56 views::View* web_view_; 57 views::View* web_view_;
57 bool fullscreen_; 58 bool fullscreen_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel); 60 DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel);
60 }; 61 };
61 62
62 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_ 63 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698