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

Side by Side Diff: ui/views/views_delegate.h

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
« ui/views/event_utils_win.cc ('K') | « ui/views/views.gyp ('k') | no next file » | 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) 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 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_VIEWS_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // so that alternate feedback (speech / magnified text) can be provided. 82 // so that alternate feedback (speech / magnified text) can be provided.
83 virtual void NotifyMenuItemFocused(const string16& menu_name, 83 virtual void NotifyMenuItemFocused(const string16& menu_name,
84 const string16& menu_item_name, 84 const string16& menu_item_name,
85 int item_index, 85 int item_index,
86 int item_count, 86 int item_count,
87 bool has_submenu) = 0; 87 bool has_submenu) = 0;
88 88
89 #if defined(OS_WIN) 89 #if defined(OS_WIN)
90 // Retrieves the default window icon to use for windows if none is specified. 90 // Retrieves the default window icon to use for windows if none is specified.
91 virtual HICON GetDefaultWindowIcon() const = 0; 91 virtual HICON GetDefaultWindowIcon() const = 0;
92 // Returns true if the window passed in is in the Windows 8 metro
93 // environment.
94 virtual bool IsWindowInMetro(gfx::NativeWindow window) const = 0;
92 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) 95 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
93 virtual gfx::ImageSkia* GetDefaultWindowIcon() const = 0; 96 virtual gfx::ImageSkia* GetDefaultWindowIcon() const = 0;
94 #endif 97 #endif
95 98
96 // Creates a default NonClientFrameView to be used for windows that don't 99 // Creates a default NonClientFrameView to be used for windows that don't
97 // specify their own. If this function returns NULL, the 100 // specify their own. If this function returns NULL, the
98 // views::CustomFrameView type will be used. 101 // views::CustomFrameView type will be used.
99 virtual NonClientFrameView* CreateDefaultNonClientFrameView( 102 virtual NonClientFrameView* CreateDefaultNonClientFrameView(
100 Widget* widget) = 0; 103 Widget* widget) = 0;
101 104
(...skipping 19 matching lines...) Expand all
121 // Returns the default obscured text reveal duration. 124 // Returns the default obscured text reveal duration.
122 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0; 125 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0;
123 126
124 private: 127 private:
125 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; 128 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_;
126 }; 129 };
127 130
128 } // namespace views 131 } // namespace views
129 132
130 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 133 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« ui/views/event_utils_win.cc ('K') | « ui/views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698