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

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: Update additional OnEventKey references. 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // Are a subclass of WindowWin? 412 // Are a subclass of WindowWin?
413 bool is_window_; 413 bool is_window_;
414 414
415 private: 415 private:
416 typedef ScopedVector<ui::ViewProp> ViewProps; 416 typedef ScopedVector<ui::ViewProp> ViewProps;
417 417
418 // Implementation of GetWindow. Ascends the parents of |hwnd| returning the 418 // Implementation of GetWindow. Ascends the parents of |hwnd| returning the
419 // first ancestor that is a Window. 419 // first ancestor that is a Window.
420 static Window* GetWindowImpl(HWND hwnd); 420 static Window* GetWindowImpl(HWND hwnd);
421 421
422 // Returns the RootView that contains the focused view, or NULL if there is no
423 // focused view.
424 RootView* GetFocusedViewRootView();
425
426 // Called after the WM_ACTIVATE message has been processed by the default 422 // Called after the WM_ACTIVATE message has been processed by the default
427 // windows procedure. 423 // windows procedure.
428 static void PostProcessActivateMessage(WidgetWin* widget, 424 static void PostProcessActivateMessage(WidgetWin* widget,
429 int activation_state); 425 int activation_state);
430 426
431 // Synchronously paints the invalid contents of the Widget. 427 // Synchronously paints the invalid contents of the Widget.
432 void RedrawInvalidRect(); 428 void RedrawInvalidRect();
433 429
434 // Synchronously updates the invalid contents of the Widget. Valid for 430 // Synchronously updates the invalid contents of the Widget. Valid for
435 // layered windows only. 431 // layered windows only.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 519
524 // Indicates if the |input_method_| is an InputMethodWin instance. 520 // Indicates if the |input_method_| is an InputMethodWin instance.
525 bool is_input_method_win_; 521 bool is_input_method_win_;
526 522
527 DISALLOW_COPY_AND_ASSIGN(WidgetWin); 523 DISALLOW_COPY_AND_ASSIGN(WidgetWin);
528 }; 524 };
529 525
530 } // namespace views 526 } // namespace views
531 527
532 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ 528 #endif // VIEWS_WIDGET_WIDGET_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698