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

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

Issue 2889673002: chromeos: Refactor shelf to create ShelfView earlier in startup (Closed)
Patch Set: rebase Created 3 years, 7 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 15 matching lines...) Expand all
26 public: 26 public:
27 ChromeVoxPanel(content::BrowserContext* browser_context, 27 ChromeVoxPanel(content::BrowserContext* browser_context,
28 bool for_blocked_user_session); 28 bool for_blocked_user_session);
29 ~ChromeVoxPanel() override; 29 ~ChromeVoxPanel() override;
30 30
31 aura::Window* GetRootWindow(); 31 aura::Window* GetRootWindow();
32 32
33 void Close(); 33 void Close();
34 void DidFirstVisuallyNonEmptyPaint(); 34 void DidFirstVisuallyNonEmptyPaint();
35 void UpdatePanelHeight(); 35 void UpdatePanelHeight();
36 void ResetPanelHeight();
36 void EnterFullscreen(); 37 void EnterFullscreen();
37 void ExitFullscreen(); 38 void ExitFullscreen();
38 void DisableSpokenFeedback(); 39 void DisableSpokenFeedback();
39 void Focus(); 40 void Focus();
40 void UpdateWidgetBounds(); 41 void UpdateWidgetBounds();
41 42
42 // WidgetDelegate overrides. 43 // WidgetDelegate overrides.
43 const views::Widget* GetWidget() const override; 44 const views::Widget* GetWidget() const override;
44 views::Widget* GetWidget() override; 45 views::Widget* GetWidget() override;
45 void DeleteDelegate() override; 46 void DeleteDelegate() override;
46 views::View* GetContentsView() override; 47 views::View* GetContentsView() override;
47 48
48 // DisplayObserver overrides; 49 // DisplayObserver overrides;
49 void OnDisplayAdded(const display::Display& new_display) override {} 50 void OnDisplayAdded(const display::Display& new_display) override {}
50 void OnDisplayRemoved(const display::Display& old_display) override {} 51 void OnDisplayRemoved(const display::Display& old_display) override {}
51 void OnDisplayMetricsChanged(const display::Display& display, 52 void OnDisplayMetricsChanged(const display::Display& display,
52 uint32_t changed_metrics) override; 53 uint32_t changed_metrics) override;
53 54
54 bool for_blocked_user_session() const { return for_blocked_user_session_; } 55 bool for_blocked_user_session() const { return for_blocked_user_session_; }
55 56
56 private: 57 private:
58 // Sends the height of the ChromeVox panel, which takes away space from the
59 // available window manager work area at the top of the screen.
60 void SendPanelHeightToAsh(int panel_height);
61
57 views::Widget* widget_; 62 views::Widget* widget_;
58 std::unique_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_; 63 std::unique_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_;
59 views::View* web_view_; 64 views::View* web_view_;
60 bool panel_fullscreen_; 65 bool panel_fullscreen_;
61 const bool for_blocked_user_session_; 66 const bool for_blocked_user_session_;
62 67
63 DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel); 68 DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel);
64 }; 69 };
65 70
66 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_ 71 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698