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

Side by Side Diff: chrome/browser/ui/views/desktop_media_picker_views.h

Issue 1313843003: Enable keyboard navigation for Desktopcapture window selection dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review feedback 5 Created 5 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DESKTOP_MEDIA_PICKER_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_H_
7 7
8 #include "chrome/browser/media/desktop_media_list_observer.h" 8 #include "chrome/browser/media/desktop_media_list_observer.h"
9 #include "chrome/browser/media/desktop_media_picker.h" 9 #include "chrome/browser/media/desktop_media_picker.h"
10 #include "ui/views/window/dialog_delegate.h" 10 #include "ui/views/window/dialog_delegate.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void OnDoubleClick(); 126 void OnDoubleClick();
127 127
128 // views::View overrides. 128 // views::View overrides.
129 gfx::Size GetPreferredSize() const override; 129 gfx::Size GetPreferredSize() const override;
130 void Layout() override; 130 void Layout() override;
131 131
132 // views::DialogDelegateView overrides. 132 // views::DialogDelegateView overrides.
133 ui::ModalType GetModalType() const override; 133 ui::ModalType GetModalType() const override;
134 base::string16 GetWindowTitle() const override; 134 base::string16 GetWindowTitle() const override;
135 bool IsDialogButtonEnabled(ui::DialogButton button) const override; 135 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
136 views::View* GetInitiallyFocusedView() override;
136 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 137 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
137 bool Accept() override; 138 bool Accept() override;
138 void DeleteDelegate() override; 139 void DeleteDelegate() override;
139 140
140 void OnMediaListRowsChanged(); 141 void OnMediaListRowsChanged();
141 142
142 DesktopMediaSourceView* GetMediaSourceViewForTesting(int index) const; 143 DesktopMediaSourceView* GetMediaSourceViewForTesting(int index) const;
143 144
144 private: 145 private:
145 DesktopMediaPickerViews* parent_; 146 DesktopMediaPickerViews* parent_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 179
179 // The |dialog_| is owned by the corresponding views::Widget instance. 180 // The |dialog_| is owned by the corresponding views::Widget instance.
180 // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed 181 // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed
181 // asynchronously by closing the widget. 182 // asynchronously by closing the widget.
182 DesktopMediaPickerDialogView* dialog_; 183 DesktopMediaPickerDialogView* dialog_;
183 184
184 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews); 185 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews);
185 }; 186 };
186 187
187 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_H_ 188 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698