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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 670653005: Fix Flash fullscreen focus regressions, and add interactive_ui_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove consts in ObjC code. Created 6 years, 1 month 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 CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 13 matching lines...) Expand all
24 // 24 //
25 // RenderWidgetHostDelegate 25 // RenderWidgetHostDelegate
26 // 26 //
27 // An interface implemented by an object interested in knowing about the state 27 // An interface implemented by an object interested in knowing about the state
28 // of the RenderWidgetHost. 28 // of the RenderWidgetHost.
29 class CONTENT_EXPORT RenderWidgetHostDelegate { 29 class CONTENT_EXPORT RenderWidgetHostDelegate {
30 public: 30 public:
31 // The RenderWidgetHost is going to be deleted. 31 // The RenderWidgetHost is going to be deleted.
32 virtual void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) {} 32 virtual void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) {}
33 33
34 // The RenderWidgetHost got the focus.
35 virtual void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) {}
36
34 // Callback to give the browser a chance to handle the specified keyboard 37 // Callback to give the browser a chance to handle the specified keyboard
35 // event before sending it to the renderer. 38 // event before sending it to the renderer.
36 // Returns true if the |event| was handled. Otherwise, if the |event| would 39 // Returns true if the |event| was handled. Otherwise, if the |event| would
37 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 40 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
38 // |*is_keyboard_shortcut| should be set to true. 41 // |*is_keyboard_shortcut| should be set to true.
39 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 42 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
40 bool* is_keyboard_shortcut); 43 bool* is_keyboard_shortcut);
41 44
42 // Callback to inform the browser that the renderer did not process the 45 // Callback to inform the browser that the renderer did not process the
43 // specified events. This gives an opportunity to the browser to process the 46 // specified events. This gives an opportunity to the browser to process the
(...skipping 29 matching lines...) Expand all
73 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 76 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
74 #endif 77 #endif
75 78
76 protected: 79 protected:
77 virtual ~RenderWidgetHostDelegate() {} 80 virtual ~RenderWidgetHostDelegate() {}
78 }; 81 };
79 82
80 } // namespace content 83 } // namespace content
81 84
82 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 85 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/interactive_ui_tests.isolate ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698