OLD | NEW |
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_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 void Shutdown() override; | 282 void Shutdown() override; |
283 void WasHidden() override; | 283 void WasHidden() override; |
284 void WasShown(const ui::LatencyInfo& latency_info) override; | 284 void WasShown(const ui::LatencyInfo& latency_info) override; |
285 bool OnMessageReceived(const IPC::Message& msg) override; | 285 bool OnMessageReceived(const IPC::Message& msg) override; |
286 void GotFocus() override; | 286 void GotFocus() override; |
287 void LostCapture() override; | 287 void LostCapture() override; |
288 void LostMouseLock() override; | 288 void LostMouseLock() override; |
289 void SetIsLoading(bool is_loading) override; | 289 void SetIsLoading(bool is_loading) override; |
290 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; | 290 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; |
291 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; | 291 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; |
292 gfx::Rect GetRootWindowResizerRect() const override; | |
293 | 292 |
294 // Creates a new RenderView with the given route id. | 293 // Creates a new RenderView with the given route id. |
295 void CreateNewWindow(int32_t route_id, | 294 void CreateNewWindow(int32_t route_id, |
296 int32_t main_frame_route_id, | 295 int32_t main_frame_route_id, |
297 int32_t main_frame_widget_route_id, | 296 int32_t main_frame_widget_route_id, |
298 const ViewHostMsg_CreateWindow_Params& params, | 297 const ViewHostMsg_CreateWindow_Params& params, |
299 SessionStorageNamespace* session_storage_namespace); | 298 SessionStorageNamespace* session_storage_namespace); |
300 | 299 |
301 // Creates a new RenderWidget with the given route id. |popup_type| indicates | 300 // Creates a new RenderWidget with the given route id. |popup_type| indicates |
302 // if this widget is a popup and what kind of popup it is (select, autofill). | 301 // if this widget is a popup and what kind of popup it is (select, autofill). |
(...skipping 28 matching lines...) Expand all Loading... |
331 int nav_entry_id() const { return nav_entry_id_; } | 330 int nav_entry_id() const { return nav_entry_id_; } |
332 void set_nav_entry_id(int nav_entry_id) { nav_entry_id_ = nav_entry_id; } | 331 void set_nav_entry_id(int nav_entry_id) { nav_entry_id_ = nav_entry_id; } |
333 | 332 |
334 // NOTE: Do not add functions that just send an IPC message that are called in | 333 // NOTE: Do not add functions that just send an IPC message that are called in |
335 // one or two places. Have the caller send the IPC message directly (unless | 334 // one or two places. Have the caller send the IPC message directly (unless |
336 // the caller places are in different platforms, in which case it's better | 335 // the caller places are in different platforms, in which case it's better |
337 // to keep them consistent). | 336 // to keep them consistent). |
338 | 337 |
339 protected: | 338 protected: |
340 // RenderWidgetHost protected overrides. | 339 // RenderWidgetHost protected overrides. |
341 void OnUserGesture() override; | |
342 void NotifyRendererUnresponsive() override; | |
343 void NotifyRendererResponsive() override; | |
344 void OnRenderAutoResized(const gfx::Size& size) override; | |
345 void RequestToLockMouse(bool user_gesture, | |
346 bool last_unlocked_by_target) override; | |
347 bool IsFullscreenGranted() const override; | 340 bool IsFullscreenGranted() const override; |
348 blink::WebDisplayMode GetDisplayMode() const override; | 341 blink::WebDisplayMode GetDisplayMode() const override; |
349 void OnFocus() override; | 342 void OnFocus() override; |
350 | 343 |
351 // IPC message handlers. | 344 // IPC message handlers. |
352 void OnShowView(int route_id, | 345 void OnShowView(int route_id, |
353 WindowOpenDisposition disposition, | 346 WindowOpenDisposition disposition, |
354 const gfx::Rect& initial_rect, | 347 const gfx::Rect& initial_rect, |
355 bool user_gesture); | 348 bool user_gesture); |
356 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); | 349 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 485 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
493 }; | 486 }; |
494 | 487 |
495 #if defined(COMPILER_MSVC) | 488 #if defined(COMPILER_MSVC) |
496 #pragma warning(pop) | 489 #pragma warning(pop) |
497 #endif | 490 #endif |
498 | 491 |
499 } // namespace content | 492 } // namespace content |
500 | 493 |
501 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 494 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |