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

Side by Side Diff: content/renderer/render_widget.h

Issue 1129883003: Pass Surface ID namespace to renderer compositors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set initial namespace value Created 5 years, 7 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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // later. 361 // later.
362 bool Init(int32 opener_id, CompositorDependencies* compositor_deps); 362 bool Init(int32 opener_id, CompositorDependencies* compositor_deps);
363 363
364 // Called by Init and subclasses to perform initialization. 364 // Called by Init and subclasses to perform initialization.
365 bool DoInit(int32 opener_id, 365 bool DoInit(int32 opener_id,
366 CompositorDependencies* compositor_deps, 366 CompositorDependencies* compositor_deps,
367 blink::WebWidget* web_widget, 367 blink::WebWidget* web_widget,
368 IPC::SyncMessage* create_widget_message); 368 IPC::SyncMessage* create_widget_message);
369 369
370 // Finishes creation of a pending view started with Init. 370 // Finishes creation of a pending view started with Init.
371 void CompleteInit(); 371 void CompleteInit(uint32_t surface_id_namespace);
372 372
373 // Sets whether this RenderWidget has been swapped out to be displayed by 373 // Sets whether this RenderWidget has been swapped out to be displayed by
374 // a RenderWidget in a different process. If so, no new IPC messages will be 374 // a RenderWidget in a different process. If so, no new IPC messages will be
375 // sent (only ACKs) and the process is free to exit when there are no other 375 // sent (only ACKs) and the process is free to exit when there are no other
376 // active RenderWidgets. 376 // active RenderWidgets.
377 void SetSwappedOut(bool is_swapped_out); 377 void SetSwappedOut(bool is_swapped_out);
378 378
379 // Allows the process to exit once the unload handler has finished, if there 379 // Allows the process to exit once the unload handler has finished, if there
380 // are no other active RenderWidgets. 380 // are no other active RenderWidgets.
381 void WasSwappedOut(); 381 void WasSwappedOut();
(...skipping 24 matching lines...) Expand all
406 #endif 406 #endif
407 407
408 // RenderWidget IPC message handlers 408 // RenderWidget IPC message handlers
409 void OnHandleInputEvent(const blink::WebInputEvent* event, 409 void OnHandleInputEvent(const blink::WebInputEvent* event,
410 const ui::LatencyInfo& latency_info, 410 const ui::LatencyInfo& latency_info,
411 bool keyboard_shortcut); 411 bool keyboard_shortcut);
412 void OnCursorVisibilityChange(bool is_visible); 412 void OnCursorVisibilityChange(bool is_visible);
413 void OnMouseCaptureLost(); 413 void OnMouseCaptureLost();
414 virtual void OnSetFocus(bool enable); 414 virtual void OnSetFocus(bool enable);
415 void OnClose(); 415 void OnClose();
416 void OnCreatingNewAck(); 416 void OnCreatingNewAck(uint32_t surface_id_namespace);
417 virtual void OnResize(const ViewMsg_Resize_Params& params); 417 virtual void OnResize(const ViewMsg_Resize_Params& params);
418 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); 418 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params);
419 void OnDisableDeviceEmulation(); 419 void OnDisableDeviceEmulation();
420 void OnColorProfile(const std::vector<char>& color_profile); 420 void OnColorProfile(const std::vector<char>& color_profile);
421 void OnChangeResizeRect(const gfx::Rect& resizer_rect); 421 void OnChangeResizeRect(const gfx::Rect& resizer_rect);
422 virtual void OnWasHidden(); 422 virtual void OnWasHidden();
423 virtual void OnWasShown(bool needs_repainting, 423 virtual void OnWasShown(bool needs_repainting,
424 const ui::LatencyInfo& latency_info); 424 const ui::LatencyInfo& latency_info);
425 void OnCreateVideoAck(int32 video_id); 425 void OnCreateVideoAck(int32 video_id);
426 void OnUpdateVideoAck(int32 video_id); 426 void OnUpdateVideoAck(int32 video_id);
(...skipping 10 matching lines...) Expand all
437 virtual void OnImeConfirmComposition(const base::string16& text, 437 virtual void OnImeConfirmComposition(const base::string16& text,
438 const gfx::Range& replacement_range, 438 const gfx::Range& replacement_range,
439 bool keep_selection); 439 bool keep_selection);
440 void OnRepaint(gfx::Size size_to_paint); 440 void OnRepaint(gfx::Size size_to_paint);
441 void OnSyntheticGestureCompleted(); 441 void OnSyntheticGestureCompleted();
442 void OnSetTextDirection(blink::WebTextDirection direction); 442 void OnSetTextDirection(blink::WebTextDirection direction);
443 void OnGetFPS(); 443 void OnGetFPS();
444 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, 444 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
445 const gfx::Rect& window_screen_rect); 445 const gfx::Rect& window_screen_rect);
446 void OnShowImeIfNeeded(); 446 void OnShowImeIfNeeded();
447 void OnUpdateSurfaceIdNamespace(uint32 surface_id_namespace);
447 448
448 #if defined(OS_ANDROID) 449 #if defined(OS_ANDROID)
449 // Whenever an IME event that needs an acknowledgement is sent to the browser, 450 // Whenever an IME event that needs an acknowledgement is sent to the browser,
450 // the number of outstanding IME events that needs acknowledgement should be 451 // the number of outstanding IME events that needs acknowledgement should be
451 // incremented. All IME events will be dropped until we receive an ack from 452 // incremented. All IME events will be dropped until we receive an ack from
452 // the browser. 453 // the browser.
453 void IncrementOutstandingImeEventAcks(); 454 void IncrementOutstandingImeEventAcks();
454 455
455 // Called by the browser process for every required IME acknowledgement. 456 // Called by the browser process for every required IME acknowledgement.
456 void OnImeEventAck(); 457 void OnImeEventAck();
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 ui::MenuSourceType context_menu_source_type_; 812 ui::MenuSourceType context_menu_source_type_;
812 bool has_host_context_menu_location_; 813 bool has_host_context_menu_location_;
813 gfx::Point host_context_menu_location_; 814 gfx::Point host_context_menu_location_;
814 815
815 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 816 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
816 }; 817 };
817 818
818 } // namespace content 819 } // namespace content
819 820
820 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 821 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698