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

Unified Diff: trunk/src/ui/base/win/accessibility_misc_utils.cc

Issue 77173004: Revert 233759 "Make NativeTextfieldViews update the win system c..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/ui/base/win/accessibility_misc_utils.cc
===================================================================
--- trunk/src/ui/base/win/accessibility_misc_utils.cc (revision 236197)
+++ trunk/src/ui/base/win/accessibility_misc_utils.cc (working copy)
@@ -4,29 +4,11 @@
#include "ui/base/win/accessibility_misc_utils.h"
#include "base/logging.h"
-#include "base/win/scoped_gdi_object.h"
#include "ui/base/win/atl_module.h"
namespace base {
namespace win {
-void SetInvisibleSystemCaretRect(HWND hwnd, const gfx::Rect& caret_rect) {
- // Create an invisible bitmap.
- base::win::ScopedGDIObject<HBITMAP> caret_bitmap(
- CreateBitmap(1, caret_rect.height(), 1, 1, NULL));
-
- // This destroys the previous caret (no matter what window it belonged to)
- // and creates a new one owned by this window.
- if (!CreateCaret(hwnd, caret_bitmap, 1, caret_rect.height()))
- return;
-
- ShowCaret(hwnd);
- RECT window_rect;
- GetWindowRect(hwnd, &window_rect);
- SetCaretPos(caret_rect.x() - window_rect.left + 2,
- caret_rect.y() - window_rect.top + 2);
-}
-
// UIA TextProvider implementation.
UIATextProvider::UIATextProvider()
: editable_(false) {}
« no previous file with comments | « trunk/src/ui/base/win/accessibility_misc_utils.h ('k') | trunk/src/ui/views/controls/textfield/native_textfield_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698