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_WIDGET_HOST_VIEW_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
11 #include <atlmisc.h> | 11 #include <atlmisc.h> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/gtest_prod_util.h" |
18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
19 #include "base/win/scoped_comptr.h" | 20 #include "base/win/scoped_comptr.h" |
20 #include "content/browser/accessibility/browser_accessibility_manager.h" | 21 #include "content/browser/accessibility/browser_accessibility_manager.h" |
21 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 22 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
22 #include "content/common/content_export.h" | 23 #include "content/common/content_export.h" |
23 #include "content/public/browser/notification_observer.h" | 24 #include "content/public/browser/notification_observer.h" |
24 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
25 #include "ui/base/gestures/gesture_recognizer.h" | 26 #include "ui/base/gestures/gesture_recognizer.h" |
26 #include "ui/base/gestures/gesture_types.h" | 27 #include "ui/base/gestures/gesture_types.h" |
27 #include "ui/base/ime/text_input_client.h" | 28 #include "ui/base/ime/text_input_client.h" |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 354 |
354 // Handle transitioning in and out of screensaver mode. | 355 // Handle transitioning in and out of screensaver mode. |
355 LRESULT OnSessionChange(UINT message, | 356 LRESULT OnSessionChange(UINT message, |
356 WPARAM wparam, | 357 WPARAM wparam, |
357 LPARAM lparam, | 358 LPARAM lparam, |
358 BOOL& handled); | 359 BOOL& handled); |
359 | 360 |
360 void OnFinalMessage(HWND window); | 361 void OnFinalMessage(HWND window); |
361 | 362 |
362 private: | 363 private: |
| 364 FRIEND_TEST(RenderWidgetHostViewWinBrowserTest, TextInputTypeChanged); |
| 365 |
363 // Updates the display cursor to the current cursor if the cursor is over this | 366 // Updates the display cursor to the current cursor if the cursor is over this |
364 // render view. | 367 // render view. |
365 void UpdateCursorIfOverSelf(); | 368 void UpdateCursorIfOverSelf(); |
366 | 369 |
367 // Tells Windows that we want to hear about mouse exit messages. | 370 // Tells Windows that we want to hear about mouse exit messages. |
368 void TrackMouseLeave(bool start_tracking); | 371 void TrackMouseLeave(bool start_tracking); |
369 | 372 |
370 // Sends a message to the RenderView in the renderer process. | 373 // Sends a message to the RenderView in the renderer process. |
371 bool Send(IPC::Message* message); | 374 bool Send(IPC::Message* message); |
372 | 375 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // The time it took after this view was selected for it to be fully painted. | 530 // The time it took after this view was selected for it to be fully painted. |
528 base::TimeTicks web_contents_switch_paint_time_; | 531 base::TimeTicks web_contents_switch_paint_time_; |
529 | 532 |
530 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. | 533 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. |
531 NotificationRegistrar registrar_; | 534 NotificationRegistrar registrar_; |
532 | 535 |
533 // Stores the current text input type received by TextInputStateChanged() | 536 // Stores the current text input type received by TextInputStateChanged() |
534 // method. | 537 // method. |
535 ui::TextInputType text_input_type_; | 538 ui::TextInputType text_input_type_; |
536 bool can_compose_inline_; | 539 bool can_compose_inline_; |
| 540 ui::TextInputMode text_input_mode_; |
537 | 541 |
538 ScopedVector<ui::ViewProp> props_; | 542 ScopedVector<ui::ViewProp> props_; |
539 | 543 |
540 // Is the widget fullscreen? | 544 // Is the widget fullscreen? |
541 bool is_fullscreen_; | 545 bool is_fullscreen_; |
542 | 546 |
543 // Used to record the last position of the mouse. | 547 // Used to record the last position of the mouse. |
544 struct { | 548 struct { |
545 // While the mouse is locked, |unlocked| and |unlocked_global| store the | 549 // While the mouse is locked, |unlocked| and |unlocked_global| store the |
546 // last known position just as mouse lock was entered. | 550 // last known position just as mouse lock was entered. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 base::win::ScopedComPtr<IAccessible> window_iaccessible_; | 603 base::win::ScopedComPtr<IAccessible> window_iaccessible_; |
600 | 604 |
601 ui::LatencyInfo software_latency_info_; | 605 ui::LatencyInfo software_latency_info_; |
602 | 606 |
603 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 607 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
604 }; | 608 }; |
605 | 609 |
606 } // namespace content | 610 } // namespace content |
607 | 611 |
608 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 612 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |