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

Side by Side Diff: views/widget/widget_win.h

Issue 6823055: Consolidate OnKeyEvent and InputMethod code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resore most InputMethod code. Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_WIDGET_WIDGET_WIN_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_WIN_H_
6 #define VIEWS_WIDGET_WIDGET_WIN_H_ 6 #define VIEWS_WIDGET_WIDGET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // Are a subclass of WindowWin? 411 // Are a subclass of WindowWin?
412 bool is_window_; 412 bool is_window_;
413 413
414 private: 414 private:
415 typedef ScopedVector<ui::ViewProp> ViewProps; 415 typedef ScopedVector<ui::ViewProp> ViewProps;
416 416
417 // Implementation of GetWindow. Ascends the parents of |hwnd| returning the 417 // Implementation of GetWindow. Ascends the parents of |hwnd| returning the
418 // first ancestor that is a Window. 418 // first ancestor that is a Window.
419 static Window* GetWindowImpl(HWND hwnd); 419 static Window* GetWindowImpl(HWND hwnd);
420 420
421 // Returns the RootView that contains the focused view, or NULL if there is no
422 // focused view.
423 RootView* GetFocusedViewRootView();
424
425 // Called after the WM_ACTIVATE message has been processed by the default 421 // Called after the WM_ACTIVATE message has been processed by the default
426 // windows procedure. 422 // windows procedure.
427 static void PostProcessActivateMessage(WidgetWin* widget, 423 static void PostProcessActivateMessage(WidgetWin* widget,
428 int activation_state); 424 int activation_state);
429 425
430 // Synchronously paints the invalid contents of the Widget. 426 // Synchronously paints the invalid contents of the Widget.
431 void RedrawInvalidRect(); 427 void RedrawInvalidRect();
432 428
433 // Synchronously updates the invalid contents of the Widget. Valid for 429 // Synchronously updates the invalid contents of the Widget. Valid for
434 // layered windows only. 430 // layered windows only.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 518
523 // Indicates if the |input_method_| is an InputMethodWin instance. 519 // Indicates if the |input_method_| is an InputMethodWin instance.
524 bool is_input_method_win_; 520 bool is_input_method_win_;
525 521
526 DISALLOW_COPY_AND_ASSIGN(WidgetWin); 522 DISALLOW_COPY_AND_ASSIGN(WidgetWin);
527 }; 523 };
528 524
529 } // namespace views 525 } // namespace views
530 526
531 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ 527 #endif // VIEWS_WIDGET_WIDGET_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698