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 23 matching lines...) Expand all Loading... |
326 // currently using it. | 325 // currently using it. |
327 int ref_count() { return frames_ref_count_; } | 326 int ref_count() { return frames_ref_count_; } |
328 | 327 |
329 // NOTE: Do not add functions that just send an IPC message that are called in | 328 // NOTE: Do not add functions that just send an IPC message that are called in |
330 // one or two places. Have the caller send the IPC message directly (unless | 329 // one or two places. Have the caller send the IPC message directly (unless |
331 // the caller places are in different platforms, in which case it's better | 330 // the caller places are in different platforms, in which case it's better |
332 // to keep them consistent). | 331 // to keep them consistent). |
333 | 332 |
334 protected: | 333 protected: |
335 // RenderWidgetHost protected overrides. | 334 // RenderWidgetHost protected overrides. |
336 void OnUserGesture() override; | |
337 void NotifyRendererUnresponsive() override; | |
338 void NotifyRendererResponsive() override; | |
339 void OnRenderAutoResized(const gfx::Size& size) override; | |
340 void RequestToLockMouse(bool user_gesture, | |
341 bool last_unlocked_by_target) override; | |
342 bool IsFullscreenGranted() const override; | 335 bool IsFullscreenGranted() const override; |
343 blink::WebDisplayMode GetDisplayMode() const override; | 336 blink::WebDisplayMode GetDisplayMode() const override; |
344 void OnFocus() override; | 337 void OnFocus() override; |
345 | 338 |
346 // IPC message handlers. | 339 // IPC message handlers. |
347 void OnShowView(int route_id, | 340 void OnShowView(int route_id, |
348 WindowOpenDisposition disposition, | 341 WindowOpenDisposition disposition, |
349 const gfx::Rect& initial_rect, | 342 const gfx::Rect& initial_rect, |
350 bool user_gesture); | 343 bool user_gesture); |
351 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); | 344 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 475 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
483 }; | 476 }; |
484 | 477 |
485 #if defined(COMPILER_MSVC) | 478 #if defined(COMPILER_MSVC) |
486 #pragma warning(pop) | 479 #pragma warning(pop) |
487 #endif | 480 #endif |
488 | 481 |
489 } // namespace content | 482 } // namespace content |
490 | 483 |
491 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 484 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |