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

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

Issue 1162373002: Make some editing/selection functions accessible to c/b/renderer_host/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Used scoped_refptr Created 5 years, 5 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 const base::Callback<void(const unsigned char*,size_t)> callback); 169 const base::Callback<void(const unsigned char*,size_t)> callback);
170 170
171 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; 171 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const;
172 172
173 // Notification that the screen info has changed. 173 // Notification that the screen info has changed.
174 void NotifyScreenInfoChanged(); 174 void NotifyScreenInfoChanged();
175 175
176 // Sets the View of this RenderWidgetHost. 176 // Sets the View of this RenderWidgetHost.
177 void SetView(RenderWidgetHostViewBase* view); 177 void SetView(RenderWidgetHostViewBase* view);
178 178
179 RenderWidgetHostDelegate* delegate() const { return delegate_; }
180
179 int surface_id() const { return surface_id_; } 181 int surface_id() const { return surface_id_; }
180 182
181 bool empty() const { return current_size_.IsEmpty(); } 183 bool empty() const { return current_size_.IsEmpty(); }
182 184
183 // Called when a renderer object already been created for this host, and we 185 // Called when a renderer object already been created for this host, and we
184 // just need to be attached to it. Used for window.open, <select> dropdown 186 // just need to be attached to it. Used for window.open, <select> dropdown
185 // menus, and other times when the renderer initiates creating an object. 187 // menus, and other times when the renderer initiates creating an object.
186 virtual void Init(); 188 virtual void Init();
187 189
188 // Initializes a RenderWidgetHost that is attached to a RenderFrameHost. 190 // Initializes a RenderWidgetHost that is attached to a RenderFrameHost.
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 bool is_focused_; 833 bool is_focused_;
832 834
833 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 835 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
834 836
835 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 837 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
836 }; 838 };
837 839
838 } // namespace content 840 } // namespace content
839 841
840 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 842 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698