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

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 100303005: Ensure that reposting mouse events on Windows posts the message natively via the PostMessage API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/chrome_views_delegate.h" 5 #include "chrome/browser/ui/views/chrome_views_delegate.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/prefs/scoped_user_pref_update.h" 9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 int item_count, 146 int item_count,
147 bool has_submenu) { 147 bool has_submenu) {
148 AccessibilityEventRouterViews::GetInstance()->HandleMenuItemFocused( 148 AccessibilityEventRouterViews::GetInstance()->HandleMenuItemFocused(
149 menu_name, menu_item_name, item_index, item_count, has_submenu); 149 menu_name, menu_item_name, item_index, item_count, has_submenu);
150 } 150 }
151 151
152 #if defined(OS_WIN) 152 #if defined(OS_WIN)
153 HICON ChromeViewsDelegate::GetDefaultWindowIcon() const { 153 HICON ChromeViewsDelegate::GetDefaultWindowIcon() const {
154 return GetAppIcon(); 154 return GetAppIcon();
155 } 155 }
156
157 bool ChromeViewsDelegate::IsWindowInMetro(gfx::NativeWindow window) const {
158 return chrome::IsNativeViewInAsh(window);
159 }
160
156 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) 161 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
157 gfx::ImageSkia* ChromeViewsDelegate::GetDefaultWindowIcon() const { 162 gfx::ImageSkia* ChromeViewsDelegate::GetDefaultWindowIcon() const {
158 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 163 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
159 return rb.GetImageSkiaNamed(IDR_PRODUCT_LOGO_64); 164 return rb.GetImageSkiaNamed(IDR_PRODUCT_LOGO_64);
160 } 165 }
161 #endif 166 #endif
162 167
163 views::NonClientFrameView* ChromeViewsDelegate::CreateDefaultNonClientFrameView( 168 views::NonClientFrameView* ChromeViewsDelegate::CreateDefaultNonClientFrameView(
164 views::Widget* widget) { 169 views::Widget* widget) {
165 #if defined(USE_ASH) 170 #if defined(USE_ASH)
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 params->native_widget = new views::DesktopNativeWidgetAura(delegate); 303 params->native_widget = new views::DesktopNativeWidgetAura(delegate);
299 } 304 }
300 } 305 }
301 #endif 306 #endif
302 } 307 }
303 308
304 base::TimeDelta 309 base::TimeDelta
305 ChromeViewsDelegate::GetDefaultTextfieldObscuredRevealDuration() { 310 ChromeViewsDelegate::GetDefaultTextfieldObscuredRevealDuration() {
306 return base::TimeDelta(); 311 return base::TimeDelta();
307 } 312 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698