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/gtest_prod_util.h" | |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.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" |
(...skipping 328 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_ALL_PREFIXES(RenderWidgetHostViewWinBrowserTest, | |
365 TextInputTypeChanged); | |
366 | |
363 // Updates the display cursor to the current cursor if the cursor is over this | 367 // Updates the display cursor to the current cursor if the cursor is over this |
364 // render view. | 368 // render view. |
365 void UpdateCursorIfOverSelf(); | 369 void UpdateCursorIfOverSelf(); |
366 | 370 |
367 // Tells Windows that we want to hear about mouse exit messages. | 371 // Tells Windows that we want to hear about mouse exit messages. |
368 void TrackMouseLeave(bool start_tracking); | 372 void TrackMouseLeave(bool start_tracking); |
369 | 373 |
370 // Sends a message to the RenderView in the renderer process. | 374 // Sends a message to the RenderView in the renderer process. |
371 bool Send(IPC::Message* message); | 375 bool Send(IPC::Message* message); |
372 | 376 |
(...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. | 531 // The time it took after this view was selected for it to be fully painted. |
528 base::TimeTicks web_contents_switch_paint_time_; | 532 base::TimeTicks web_contents_switch_paint_time_; |
529 | 533 |
530 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. | 534 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. |
531 NotificationRegistrar registrar_; | 535 NotificationRegistrar registrar_; |
532 | 536 |
533 // Stores the current text input type received by TextInputStateChanged() | 537 // Stores the current text input type received by TextInputStateChanged() |
534 // method. | 538 // method. |
535 ui::TextInputType text_input_type_; | 539 ui::TextInputType text_input_type_; |
536 bool can_compose_inline_; | 540 bool can_compose_inline_; |
541 ui::TextInputMode text_input_mode_; | |
Yohei Yukawa
2013/08/07 04:17:18
Please move this field next to |text_input_type_|
yoichio
2013/08/07 09:33:39
Done.
| |
537 | 542 |
538 ScopedVector<ui::ViewProp> props_; | 543 ScopedVector<ui::ViewProp> props_; |
539 | 544 |
540 // Is the widget fullscreen? | 545 // Is the widget fullscreen? |
541 bool is_fullscreen_; | 546 bool is_fullscreen_; |
542 | 547 |
543 // Used to record the last position of the mouse. | 548 // Used to record the last position of the mouse. |
544 struct { | 549 struct { |
545 // While the mouse is locked, |unlocked| and |unlocked_global| store the | 550 // While the mouse is locked, |unlocked| and |unlocked_global| store the |
546 // last known position just as mouse lock was entered. | 551 // 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_; | 604 base::win::ScopedComPtr<IAccessible> window_iaccessible_; |
600 | 605 |
601 ui::LatencyInfo software_latency_info_; | 606 ui::LatencyInfo software_latency_info_; |
602 | 607 |
603 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 608 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
604 }; | 609 }; |
605 | 610 |
606 } // namespace content | 611 } // namespace content |
607 | 612 |
608 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 613 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |