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

Side by Side Diff: ui/views/controls/webview/web_dialog_view.h

Issue 2871073002: cros: Bind hangup red button on remote controller to close web dialog (Closed)
Patch Set: for discussion 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 (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 UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_
6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void GetMinimumDialogSize(gfx::Size* size) const override; 85 void GetMinimumDialogSize(gfx::Size* size) const override;
86 std::string GetDialogArgs() const override; 86 std::string GetDialogArgs() const override;
87 void OnDialogShown(content::WebUI* webui, 87 void OnDialogShown(content::WebUI* webui,
88 content::RenderViewHost* render_view_host) override; 88 content::RenderViewHost* render_view_host) override;
89 void OnDialogClosed(const std::string& json_retval) override; 89 void OnDialogClosed(const std::string& json_retval) override;
90 void OnDialogCloseFromWebUI(const std::string& json_retval) override; 90 void OnDialogCloseFromWebUI(const std::string& json_retval) override;
91 void OnCloseContents(content::WebContents* source, 91 void OnCloseContents(content::WebContents* source,
92 bool* out_close_dialog) override; 92 bool* out_close_dialog) override;
93 bool ShouldShowDialogTitle() const override; 93 bool ShouldShowDialogTitle() const override;
94 bool HandleContextMenu(const content::ContextMenuParams& params) override; 94 bool HandleContextMenu(const content::ContextMenuParams& params) override;
95 bool AdditionalAccelerator(const ui::Accelerator& accelerator) const override;
95 96
96 // Overridden from content::WebContentsDelegate: 97 // Overridden from content::WebContentsDelegate:
97 void MoveContents(content::WebContents* source, 98 void MoveContents(content::WebContents* source,
98 const gfx::Rect& pos) override; 99 const gfx::Rect& pos) override;
99 void HandleKeyboardEvent( 100 void HandleKeyboardEvent(
100 content::WebContents* source, 101 content::WebContents* source,
101 const content::NativeWebKeyboardEvent& event) override; 102 const content::NativeWebKeyboardEvent& event) override;
102 void CloseContents(content::WebContents* source) override; 103 void CloseContents(content::WebContents* source) override;
103 content::WebContents* OpenURLFromTab( 104 content::WebContents* OpenURLFromTab(
104 content::WebContents* source, 105 content::WebContents* source,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 159
159 // Whether CloseContents() has been called. 160 // Whether CloseContents() has been called.
160 bool close_contents_called_; 161 bool close_contents_called_;
161 162
162 DISALLOW_COPY_AND_ASSIGN(WebDialogView); 163 DISALLOW_COPY_AND_ASSIGN(WebDialogView);
163 }; 164 };
164 165
165 } // namespace views 166 } // namespace views
166 167
167 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ 168 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698