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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 #include "content/browser/renderer_host/render_widget_host_view_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <peninputpanel_i.c> 9 #include <peninputpanel_i.c>
10 10
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 // WebKit expects small consecutive integers, starting at 0. 567 // WebKit expects small consecutive integers, starting at 0.
568 MapType touch_map_; 568 MapType touch_map_;
569 569
570 DISALLOW_COPY_AND_ASSIGN(WebTouchState); 570 DISALLOW_COPY_AND_ASSIGN(WebTouchState);
571 }; 571 };
572 572
573 /////////////////////////////////////////////////////////////////////////////// 573 ///////////////////////////////////////////////////////////////////////////////
574 // RenderWidgetHostViewWin, public: 574 // RenderWidgetHostViewWin, public:
575 575
576 RenderWidgetHostViewWin::RenderWidgetHostViewWin(RenderWidgetHost* widget) 576 RenderWidgetHostViewWin::RenderWidgetHostViewWin(RenderWidgetHost* widget)
577 : render_widget_host_(RenderWidgetHostImpl::From(widget)), 577 : RenderWidgetHostViewBase(CompositingDelegateWin(this)),
578 render_widget_host_(RenderWidgetHostImpl::From(widget)),
578 compositor_host_window_(NULL), 579 compositor_host_window_(NULL),
579 hide_compositor_window_at_next_paint_(false), 580 hide_compositor_window_at_next_paint_(false),
580 track_mouse_leave_(false), 581 track_mouse_leave_(false),
581 ime_notification_(false), 582 ime_notification_(false),
582 capture_enter_key_(false), 583 capture_enter_key_(false),
583 is_hidden_(false), 584 is_hidden_(false),
584 about_to_validate_and_paint_(false), 585 about_to_validate_and_paint_(false),
585 close_on_deactivate_(false), 586 close_on_deactivate_(false),
586 being_destroyed_(false), 587 being_destroyed_(false),
587 tooltip_hwnd_(NULL), 588 tooltip_hwnd_(NULL),
(...skipping 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after
3165 void RenderWidgetHostViewWin::ResetPointerDownContext() { 3166 void RenderWidgetHostViewWin::ResetPointerDownContext() {
3166 // If the default focus on the page is on an edit field and we did not 3167 // If the default focus on the page is on an edit field and we did not
3167 // receive a focus change in the context of a pointer down message, it means 3168 // receive a focus change in the context of a pointer down message, it means
3168 // that the pointer down message occurred on the edit field and we should 3169 // that the pointer down message occurred on the edit field and we should
3169 // display the on screen keyboard 3170 // display the on screen keyboard
3170 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) 3171 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_)
3171 DisplayOnScreenKeyboardIfNeeded(); 3172 DisplayOnScreenKeyboardIfNeeded();
3172 received_focus_change_after_pointer_down_ = false; 3173 received_focus_change_after_pointer_down_ = false;
3173 pointer_down_context_ = false; 3174 pointer_down_context_ = false;
3174 } 3175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698