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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_gtk.h

Issue 261033: GTK: Draw a strikethrough over bad https.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: styles Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit_view_gtk.h (revision 28273)
+++ chrome/browser/autocomplete/autocomplete_edit_view_gtk.h (working copy)
@@ -10,6 +10,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/gfx/rect.h"
#include "base/scoped_ptr.h"
#include "base/string_util.h"
#include "chrome/browser/autocomplete/autocomplete_edit_view.h"
@@ -280,6 +281,18 @@
}
void HandlePasteClipboard();
+ static gboolean HandleExposeEventThunk(GtkTextView* text_view,
+ GdkEventExpose* expose,
+ gpointer self) {
+ return reinterpret_cast<AutocompleteEditViewGtk*>(self)->
+ HandleExposeEvent(expose);
+ }
+ gboolean HandleExposeEvent(GdkEventExpose* expose);
+
+ // Gets the GTK_TEXT_WINDOW_WIDGET coordinates for |text_view_| that bound the
+ // given iters.
+ gfx::Rect WindowBoundsFromIters(GtkTextIter* iter1, GtkTextIter* iter2);
+
// Actual implementation of SelectAll(), but also provides control over
// whether the PRIMARY selection is set to the selected text (in SelectAll(),
// it isn't, but we want set the selection when the user clicks in the entry).
@@ -413,6 +426,11 @@
// handled by IME or not.
bool enter_was_inserted_;
+ // Contains the character range that should have a strikethrough (used for
+ // insecure schemes). If the range is size one or less, no strikethrough
+ // is needed.
+ CharRange strikethrough_;
+
DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk);
};
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698