Auto merge of #9352 - mattkuo:cleanup-private-types, r=nox

Convert private types to public

fixes #9347

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9352)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-01-18 01:58:01 +05:30
commit 380541bd48
4 changed files with 7 additions and 7 deletions

View file

@ -54,14 +54,14 @@ use util::print_tree::PrintTree;
use windowing::{self, MouseWindowEvent, WindowEvent, WindowMethods, WindowNavigateMsg}; use windowing::{self, MouseWindowEvent, WindowEvent, WindowMethods, WindowNavigateMsg};
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq)]
enum UnableToComposite { pub enum UnableToComposite {
NoContext, NoContext,
WindowUnprepared, WindowUnprepared,
NotReadyToPaintImage(NotReadyToPaint), NotReadyToPaintImage(NotReadyToPaint),
} }
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq)]
enum NotReadyToPaint { pub enum NotReadyToPaint {
LayerHasOutstandingPaintMessages, LayerHasOutstandingPaintMessages,
MissingRoot, MissingRoot,
PendingSubpages(usize), PendingSubpages(usize),
@ -225,7 +225,7 @@ struct HitTestResult {
point: TypedPoint2D<LayerPixel, f32>, point: TypedPoint2D<LayerPixel, f32>,
} }
struct PipelineDetails { pub struct PipelineDetails {
/// The pipeline associated with this PipelineDetails object. /// The pipeline associated with this PipelineDetails object.
pipeline: Option<CompositionPipeline>, pipeline: Option<CompositionPipeline>,
@ -251,7 +251,7 @@ impl PipelineDetails {
} }
#[derive(Clone, Copy, PartialEq, Debug)] #[derive(Clone, Copy, PartialEq, Debug)]
enum CompositeTarget { pub enum CompositeTarget {
/// Normal composition to a window /// Normal composition to a window
Window, Window,

View file

@ -31,7 +31,7 @@ pub trait Actor: Any + ActorAsAny {
fn name(&self) -> String; fn name(&self) -> String;
} }
trait ActorAsAny { pub trait ActorAsAny {
fn actor_as_any(&self) -> &Any; fn actor_as_any(&self) -> &Any;
fn actor_as_any_mut(&mut self) -> &mut Any; fn actor_as_any_mut(&mut self) -> &mut Any;
} }

View file

@ -35,7 +35,7 @@ struct ListTabsReply {
} }
#[derive(RustcEncodable)] #[derive(RustcEncodable)]
struct RootActorMsg { pub struct RootActorMsg {
from: String, from: String,
applicationType: String, applicationType: String,
traits: ActorTraits, traits: ActorTraits,

View file

@ -18,7 +18,7 @@ use util::mem::{HeapSizeOf, heap_size_of};
// We pass a |User| struct -- via an opaque |void*| -- to FreeType each time a new instance is // We pass a |User| struct -- via an opaque |void*| -- to FreeType each time a new instance is
// created. FreeType passes it back to the ft_alloc/ft_realloc/ft_free callbacks. We use it to // created. FreeType passes it back to the ft_alloc/ft_realloc/ft_free callbacks. We use it to
// record the memory usage of each FreeType instance. // record the memory usage of each FreeType instance.
struct User { pub struct User {
size: usize, size: usize,
} }