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

Side by Side Diff: views/desktop/desktop_main.cc

Issue 8343023: rename Run in MessageLoopForUI to RunWithDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 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
« no previous file with comments | « views/controls/menu/nested_dispatcher_gtk.cc ('k') | views/examples/examples_main.cc » ('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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/i18n/icu_util.h" 7 #include "base/i18n/icu_util.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 views::desktop::DesktopWindowView::CreateDesktopWindow( 75 views::desktop::DesktopWindowView::CreateDesktopWindow(
76 views::desktop::DesktopWindowView::DESKTOP_DEFAULT); 76 views::desktop::DesktopWindowView::DESKTOP_DEFAULT);
77 views::desktop::DesktopWindowView::desktop_window_view->CreateTestWindow( 77 views::desktop::DesktopWindowView::desktop_window_view->CreateTestWindow(
78 ASCIIToUTF16("Sample Window 1"), SK_ColorWHITE, 78 ASCIIToUTF16("Sample Window 1"), SK_ColorWHITE,
79 gfx::Rect(500, 200, 400, 400), true); 79 gfx::Rect(500, 200, 400, 400), true);
80 views::desktop::DesktopWindowView::desktop_window_view->CreateTestWindow( 80 views::desktop::DesktopWindowView::desktop_window_view->CreateTestWindow(
81 ASCIIToUTF16("Sample Window 2"), SK_ColorRED, 81 ASCIIToUTF16("Sample Window 2"), SK_ColorRED,
82 gfx::Rect(600, 450, 450, 300), false); 82 gfx::Rect(600, 450, 450, 300), false);
83 83
84 views::AcceleratorHandler accelerator_handler; 84 views::AcceleratorHandler accelerator_handler;
85 MessageLoopForUI::current()->Run(&accelerator_handler); 85 MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler);
86 86
87 #if defined(OS_WIN) 87 #if defined(OS_WIN)
88 OleUninitialize(); 88 OleUninitialize();
89 #endif 89 #endif
90 return 0; 90 return 0;
91 } 91 }
OLDNEW
« no previous file with comments | « views/controls/menu/nested_dispatcher_gtk.cc ('k') | views/examples/examples_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698