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

Side by Side Diff: ui/web_dialogs/web_dialog_web_contents_delegate.h

Issue 418093005: Do not save and restore View focus on aura::Window focus changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Focus the dialog's views::WebView when its content::WebContents is focused. Created 6 years, 4 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 | Annotate | Revision Log
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_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
6 #define UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ 6 #define UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/public/browser/web_contents_delegate.h" 9 #include "content/public/browser/web_contents_delegate.h"
10 #include "ui/web_dialogs/web_dialogs_export.h" 10 #include "ui/web_dialogs/web_dialogs_export.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 content::WebContents* source, 57 content::WebContents* source,
58 const content::OpenURLParams& params) OVERRIDE; 58 const content::OpenURLParams& params) OVERRIDE;
59 virtual void AddNewContents(content::WebContents* source, 59 virtual void AddNewContents(content::WebContents* source,
60 content::WebContents* new_contents, 60 content::WebContents* new_contents,
61 WindowOpenDisposition disposition, 61 WindowOpenDisposition disposition,
62 const gfx::Rect& initial_pos, 62 const gfx::Rect& initial_pos,
63 bool user_gesture, 63 bool user_gesture,
64 bool* was_blocked) OVERRIDE; 64 bool* was_blocked) OVERRIDE;
65 virtual bool IsPopupOrPanel( 65 virtual bool IsPopupOrPanel(
66 const content::WebContents* source) const OVERRIDE; 66 const content::WebContents* source) const OVERRIDE;
67 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE;
67 virtual bool PreHandleGestureEvent( 68 virtual bool PreHandleGestureEvent(
68 content::WebContents* source, 69 content::WebContents* source,
69 const blink::WebGestureEvent& event) OVERRIDE; 70 const blink::WebGestureEvent& event) OVERRIDE;
70 71
71 private: 72 private:
72 // Weak pointer. Always an original profile. 73 // Weak pointer. Always an original profile.
73 content::BrowserContext* browser_context_; 74 content::BrowserContext* browser_context_;
74 75
75 scoped_ptr<WebContentsHandler> handler_; 76 scoped_ptr<WebContentsHandler> handler_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(WebDialogWebContentsDelegate); 78 DISALLOW_COPY_AND_ASSIGN(WebDialogWebContentsDelegate);
78 }; 79 };
79 80
80 } // namespace ui 81 } // namespace ui
81 82
82 #endif // UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ 83 #endif // UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698