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

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

Issue 6688049: New InputMethod api for Views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 Widget(); 88 Widget();
89 virtual ~Widget(); 89 virtual ~Widget();
90 90
91 // Creates a Widget instance with the supplied params. 91 // Creates a Widget instance with the supplied params.
92 static Widget* CreateWidget(const CreateParams& params); 92 static Widget* CreateWidget(const CreateParams& params);
93 93
94 // Enumerates all windows pertaining to us and notifies their 94 // Enumerates all windows pertaining to us and notifies their
95 // view hierarchies that the locale has changed. 95 // view hierarchies that the locale has changed.
96 static void NotifyLocaleChanged(); 96 static void NotifyLocaleChanged();
97 97
98 // Converts a rectangle from one Widget's coordinate system to another's.
99 // Returns false if the conversion couldn't be made, because either these two
100 // Widgets do not have a common ancestor or they are not on the screen yet.
101 // The value of |*rect| won't be changed when false is returned.
102 static bool ConvertRect(const Widget* source,
103 const Widget* target,
104 gfx::Rect* rect);
105
98 // Unconverted methods ------------------------------------------------------- 106 // Unconverted methods -------------------------------------------------------
99 107
100 // TODO(beng): 108 // TODO(beng):
101 // Widget subclasses are still implementing these methods by overriding from 109 // Widget subclasses are still implementing these methods by overriding from
102 // here rather than by implementing NativeWidget. 110 // here rather than by implementing NativeWidget.
103 111
104 // Initialize the Widget with a parent and an initial desired size. 112 // Initialize the Widget with a parent and an initial desired size.
105 // |contents_view| is the view that will be the single child of RootView 113 // |contents_view| is the view that will be the single child of RootView
106 // within this Widget. As contents_view is inserted into RootView's tree, 114 // within this Widget. As contents_view is inserted into RootView's tree,
107 // RootView assumes ownership of this view and cleaning it up. If you remove 115 // RootView assumes ownership of this view and cleaning it up. If you remove
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 343
336 // The compositor for accelerated drawing. 344 // The compositor for accelerated drawing.
337 scoped_refptr<ui::Compositor> compositor_; 345 scoped_refptr<ui::Compositor> compositor_;
338 346
339 DISALLOW_COPY_AND_ASSIGN(Widget); 347 DISALLOW_COPY_AND_ASSIGN(Widget);
340 }; 348 };
341 349
342 } // namespace views 350 } // namespace views
343 351
344 #endif // VIEWS_WIDGET_WIDGET_H_ 352 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698