summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view_selection.cc
blob: ad5d22c6502ba791e130228b03a6c1b32c462be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/renderer/render_view_selection.h"

RenderViewSelection::RenderViewSelection() {
}

RenderViewSelection::RenderViewSelection(const std::string& text,
                                         const ui::Range range,
                                         const gfx::Point start,
                                         const gfx::Point end)
    : text_(text),
      range_(range),
      start_(start),
      end_(end) {
}

RenderViewSelection::~RenderViewSelection() {
}

bool RenderViewSelection::Equals(const RenderViewSelection& that) const {
  return text_ == that.text_ &&
         range_ == that.range_ &&
         start_ == that.start_ &&
         end_ == that.end_;
}