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

Side by Side Diff: ui/aura/desktop.cc

Issue 8824007: Revert 113224 - IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in u... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
« no previous file with comments | « ui/aura/desktop.h ('k') | ui/aura/desktop_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ui/aura/desktop.h" 5 #include "ui/aura/desktop.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
15 #include "base/string_split.h" 15 #include "base/string_split.h"
16 #include "ui/aura/aura_switches.h" 16 #include "ui/aura/aura_switches.h"
17 #include "ui/aura/client/stacking_client.h" 17 #include "ui/aura/client/stacking_client.h"
18 #include "ui/aura/desktop_host.h" 18 #include "ui/aura/desktop_host.h"
19 #include "ui/aura/desktop_observer.h" 19 #include "ui/aura/desktop_observer.h"
20 #include "ui/aura/event.h" 20 #include "ui/aura/event.h"
21 #include "ui/aura/event_filter.h" 21 #include "ui/aura/event_filter.h"
22 #include "ui/aura/focus_manager.h" 22 #include "ui/aura/focus_manager.h"
23 #include "ui/aura/screen_aura.h" 23 #include "ui/aura/screen_aura.h"
24 #include "ui/aura/window.h" 24 #include "ui/aura/window.h"
25 #include "ui/aura/window_delegate.h" 25 #include "ui/aura/window_delegate.h"
26 #include "ui/base/hit_test.h" 26 #include "ui/base/hit_test.h"
27 #include "ui/base/ime/input_method.h"
28 #include "ui/gfx/compositor/compositor.h" 27 #include "ui/gfx/compositor/compositor.h"
29 #include "ui/gfx/compositor/layer.h" 28 #include "ui/gfx/compositor/layer.h"
30 #include "ui/gfx/compositor/layer_animator.h" 29 #include "ui/gfx/compositor/layer_animator.h"
31 30
32 #ifdef USE_WEBKIT_COMPOSITOR 31 #ifdef USE_WEBKIT_COMPOSITOR
33 #include "ui/gfx/compositor/compositor_cc.h" 32 #include "ui/gfx/compositor/compositor_cc.h"
34 #endif 33 #endif
35 34
36 using std::string; 35 using std::string;
37 using std::vector; 36 using std::vector;
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 base::StringToInt(parts[0], &parsed_width) && parsed_width > 0 && 601 base::StringToInt(parts[0], &parsed_width) && parsed_width > 0 &&
603 base::StringToInt(parts[1], &parsed_height) && parsed_height > 0) { 602 base::StringToInt(parts[1], &parsed_height) && parsed_height > 0) {
604 bounds.set_size(gfx::Size(parsed_width, parsed_height)); 603 bounds.set_size(gfx::Size(parsed_width, parsed_height));
605 } else if (use_fullscreen_host_window_) { 604 } else if (use_fullscreen_host_window_) {
606 bounds = gfx::Rect(DesktopHost::GetNativeScreenSize()); 605 bounds = gfx::Rect(DesktopHost::GetNativeScreenSize());
607 } 606 }
608 607
609 return bounds; 608 return bounds;
610 } 609 }
611 610
612 ui::InputMethod* Desktop::GetInputMethod() {
613 return host_->GetInputMethod();
614 }
615
616 } // namespace aura 611 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/desktop.h ('k') | ui/aura/desktop_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698